From cdaea89a0c0eb8c028ce9220c1af7ea795845dd7 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Thu, 6 Jul 2017 15:49:30 +0200 Subject: [PATCH] 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. --- src/stream.c | 1 + 1 file changed, 1 insertion(+) 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) -- 2.39.5