diff --git a/src/flt_bwlim.c b/src/flt_bwlim.c index c9cdf2f90..27db231fd 100644 --- a/src/flt_bwlim.c +++ b/src/flt_bwlim.c @@ -288,6 +288,18 @@ static void bwlim_detach(struct stream *s, struct filter *filter) filter->ctx = NULL; } +/************************************************************************** + * Hooks to handle channels activity + *************************************************************************/ + +/* Called when analyze ends for a given channel */ +static int bwlim_chn_end_analyze(struct stream *s, struct filter *filter, struct channel *chn) +{ + chn->analyse_exp = TICK_ETERNITY; + return 1; +} + + /************************************************************************** * Hooks to filter HTTP messages *************************************************************************/ @@ -325,6 +337,8 @@ struct flt_ops bwlim_ops = { .attach = bwlim_attach, .detach = bwlim_detach, + /* Handle channels activity */ + .channel_end_analyze = bwlim_chn_end_analyze, /* Filter HTTP requests and responses */ .http_headers = bwlim_http_headers,