From: Christopher Faulet Date: Thu, 6 Jul 2017 13:49:30 +0000 (+0200) Subject: BUG/MINOR: stream: Don't forget to remove CF_WAKE_ONCE flag on response channel X-Git-Tag: v1.8-dev3~251 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=cdaea89a0c0eb8c028ce9220c1af7ea795845dd7;p=thirdparty%2Fhaproxy.git BUG/MINOR: stream: Don't forget to remove CF_WAKE_ONCE flag on response channel This flag can be set on a channel to pretend there is activity on it. This is a way to wake-up the corresponding stream and evaluate stream analyzers on the channel. It is correctly handled on both channels but removed only on the request channel. This patch is flagged as a bug but for now, CF_WAKE_ONCE is never set on the response channel. --- diff --git a/src/stream.c b/src/stream.c index 4e34f3848c..1aa547525b 100644 --- a/src/stream.c +++ b/src/stream.c @@ -1881,6 +1881,7 @@ struct task *process_stream(struct task *t) rp_cons_last = si_f->state; rp_prod_last = si_b->state; + res->flags &= ~CF_WAKE_ONCE; rpf_last = res->flags; if ((res->flags ^ flags) & CF_MASK_STATIC)