Home
last modified time | relevance | path

Searched refs:read_limit (Results 1 – 2 of 2) sorted by relevance

/external/libevent/
Dbufferevent_ratelim.c60 if (bucket->read_limit > (ev_int64_t) cfg->read_maximum) in ev_token_bucket_init()
61 bucket->read_limit = cfg->read_maximum; in ev_token_bucket_init()
65 bucket->read_limit = cfg->read_rate; in ev_token_bucket_init()
95 if ((cfg->read_maximum - bucket->read_limit) / n_ticks < cfg->read_rate) in ev_token_bucket_update()
96 bucket->read_limit = cfg->read_maximum; in ev_token_bucket_update()
98 bucket->read_limit += n_ticks * cfg->read_rate; in ev_token_bucket_update()
206 (is_write ? (x).write_limit : (x).read_limit) in _bufferevent_get_rlim_max()
284 bev->rate_limiting->limit.read_limit -= bytes; in _bufferevent_decrement_read_buckets()
285 if (bev->rate_limiting->limit.read_limit <= 0) { in _bufferevent_decrement_read_buckets()
299 bev->rate_limiting->group->rate_limit.read_limit -= bytes; in _bufferevent_decrement_read_buckets()
[all …]
Dratelim-internal.h41 ev_ssize_t read_limit, write_limit; member
93 (b)->read_limit -= (n); \