Searched refs:rate_limit (Results 1 – 3 of 3) sorted by relevance
249 share = LIM(g->rate_limit) / g->n_members; in _bufferevent_get_rlim_max()299 bev->rate_limiting->group->rate_limit.read_limit -= bytes; in _bufferevent_decrement_read_buckets()301 if (bev->rate_limiting->group->rate_limit.read_limit <= 0) { in _bufferevent_decrement_read_buckets()337 bev->rate_limiting->group->rate_limit.write_limit -= bytes; in _bufferevent_decrement_write_buckets()339 if (bev->rate_limiting->group->rate_limit.write_limit <= 0) { in _bufferevent_decrement_write_buckets()539 ev_token_bucket_update(&g->rate_limit, &g->rate_limit_cfg, tick); in _bev_group_refill_callback()542 (g->read_suspended && (g->rate_limit.read_limit >= g->min_share))) { in _bev_group_refill_callback()546 (g->write_suspended && (g->rate_limit.write_limit >= g->min_share))){ in _bev_group_refill_callback()654 ev_token_bucket_init(&g->rate_limit, cfg, tick, 0); in bufferevent_rate_limit_group_new()682 if (g->rate_limit.read_limit > (ev_ssize_t)cfg->read_maximum) in bufferevent_rate_limit_group_set_cfg()[all …]
70 struct ev_token_bucket rate_limit; member
417 __u32 rate_limit; /* messages rate limit (per second) */ member