21 return (int32_t) (a -
b);
27 if (delta < 0 || delta > (
signed) (window * 1000000)) {
33 return (rs->
count++) < n;
void * xmalloc(size_t sz)
bool ratelimit_check(ratelimit_state_t *rs, uint32_t n, uint32_t window)
Check that the rate limiter has not triggered.
int32_t cyclecmp32(uint32_t a, uint32_t b)
Compares values that may be subject to overflow.
Control structure used for rate limiting.
void rf_internal_out_of_memory(void)