Home
last modified time | relevance | path

Searched refs:rate_limiting (Results 1 – 3 of 3) sorted by relevance

/external/libevent/
Dbufferevent_ratelim.c120 tick = ev_token_bucket_get_tick_(&now, bev->rate_limiting->cfg); in bufferevent_update_buckets()
121 if (tick != bev->rate_limiting->limit.last_updated) in bufferevent_update_buckets()
122 ev_token_bucket_update_(&bev->rate_limiting->limit, in bufferevent_update_buckets()
123 bev->rate_limiting->cfg, tick); in bufferevent_update_buckets()
216 if (!bev->rate_limiting) in bufferevent_get_rlim_max_()
224 if (bev->rate_limiting->cfg) { in bufferevent_get_rlim_max_()
226 max_so_far = LIM(bev->rate_limiting->limit); in bufferevent_get_rlim_max_()
228 if (bev->rate_limiting->group) { in bufferevent_get_rlim_max_()
230 bev->rate_limiting->group; in bufferevent_get_rlim_max_()
278 if (!bev->rate_limiting) in bufferevent_decrement_read_buckets_()
[all …]
Dbufferevent.c708 if (bufev_private->rate_limiting) { in bufferevent_decref_and_unlock_()
709 struct event *e = &bufev_private->rate_limiting->refill_bucket_event; in bufferevent_decref_and_unlock_()
747 if (bufev_private->rate_limiting) { in bufferevent_finalize_cb_()
748 if (bufev_private->rate_limiting->group) in bufferevent_finalize_cb_()
750 mm_free(bufev_private->rate_limiting); in bufferevent_finalize_cb_()
751 bufev_private->rate_limiting = NULL; in bufferevent_finalize_cb_()
Dbufferevent-internal.h218 struct bufferevent_rate_limit *rate_limiting; member