Home
last modified time | relevance | path

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

/freebsd/contrib/ntp/sntp/libevent/test/
H A Dtest-ratelim.c82 struct bufferevent_rate_limit_group *ratelim_group = NULL; variable
207 if (ratelim_group) in echo_listenercb()
208 bufferevent_add_to_rate_limit_group(bev, ratelim_group); in echo_listenercb()
247 if (ratelim_group) { in check_group_bucket_levels_cb()
248 ev_ssize_t r = bufferevent_rate_limit_group_get_read_limit(ratelim_group); in check_group_bucket_levels_cb()
249 ev_ssize_t w = bufferevent_rate_limit_group_get_write_limit(ratelim_group); in check_group_bucket_levels_cb()
259 bufferevent_rate_limit_group_decrement_read(ratelim_group, cfg_group_drain); in group_drain_cb()
260 bufferevent_rate_limit_group_decrement_write(ratelim_group, cfg_group_drain); in group_drain_cb()
409 group = ratelim_group = bufferevent_rate_limit_group_new( in test_ratelimiting()
417 ratelim_group, cfg_min_share); in test_ratelimiting()
[all …]
/freebsd/contrib/libevent/test/
H A Dtest-ratelim.c82 struct bufferevent_rate_limit_group *ratelim_group = NULL; variable
207 if (ratelim_group) in echo_listenercb()
208 bufferevent_add_to_rate_limit_group(bev, ratelim_group); in echo_listenercb()
247 if (ratelim_group) { in check_group_bucket_levels_cb()
248 ev_ssize_t r = bufferevent_rate_limit_group_get_read_limit(ratelim_group); in check_group_bucket_levels_cb()
249 ev_ssize_t w = bufferevent_rate_limit_group_get_write_limit(ratelim_group); in check_group_bucket_levels_cb()
259 bufferevent_rate_limit_group_decrement_read(ratelim_group, cfg_group_drain); in group_drain_cb()
260 bufferevent_rate_limit_group_decrement_write(ratelim_group, cfg_group_drain); in group_drain_cb()
409 group = ratelim_group = bufferevent_rate_limit_group_new( in test_ratelimiting()
417 ratelim_group, cfg_min_share); in test_ratelimiting()
[all …]