Expand description
Verification-request limits keyed by source and destination.
Separate token buckets protect the caller-IP and target-address axes. Their state is process-local, bounded in size, and reset when the service restarts.
ConstantsΒ§
- RATELIMIT_
MAP_ πCAP - Cap on each bucket table; fully refilled buckets are pruned past it so a spray cannot grow the table without bound.
- RC_
BURST π - RC_
PER_ πSECOND - Refills per second on each requestToken bucket; a generous burst absorbs a real clientβs retries while bounding sustained spray.
FunctionsΒ§
- check_
bucket π - check_
bucket_ πat - debit_
bucket π