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.
This commit is contained in:
Christopher Faulet 2017-07-06 15:49:30 +02:00 committed by Willy Tarreau
parent 2ab88675ec
commit cdaea89a0c

View 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)