]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stream: Don't forget to remove CF_WAKE_ONCE flag on response channel
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 6 Jul 2017 13:49:30 +0000 (15:49 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Jul 2017 21:06:47 +0000 (23:06 +0200)
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.

src/stream.c

index 4e34f3848c4c26a894ed577dbba0adba438e96ad..1aa547525b1c6f2697ee909038e9eb2cc42be49c 100644 (file)
@@ -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)