Searched refs:write_limit (Results 1 – 2 of 2) sorted by relevance
62 if (bucket->write_limit > (ev_int64_t) cfg->write_maximum) in ev_token_bucket_init()63 bucket->write_limit = cfg->write_maximum; in ev_token_bucket_init()66 bucket->write_limit = cfg->write_rate; in ev_token_bucket_init()101 if ((cfg->write_maximum - bucket->write_limit) / n_ticks < cfg->write_rate) in ev_token_bucket_update()102 bucket->write_limit = cfg->write_maximum; in ev_token_bucket_update()104 bucket->write_limit += n_ticks * cfg->write_rate; in ev_token_bucket_update()206 (is_write ? (x).write_limit : (x).read_limit) in _bufferevent_get_rlim_max()322 bev->rate_limiting->limit.write_limit -= bytes; in _bufferevent_decrement_write_buckets()323 if (bev->rate_limiting->limit.write_limit <= 0) { in _bufferevent_decrement_write_buckets()337 bev->rate_limiting->group->rate_limit.write_limit -= bytes; in _bufferevent_decrement_write_buckets()[all …]
41 ev_ssize_t read_limit, write_limit; member98 (b)->write_limit -= (n); \