From 55071d30caab25aa2a147d5d4870c0b7ba460eef Mon Sep 17 00:00:00 2001 From: Olivier Houchard Date: Thu, 2 May 2019 00:58:53 +0200 Subject: [PATCH] BUG/MEDIUM: channels: Don't forget to reset output in channel_erase(). In channel_erase(), don't forget to set output to 0, otherwise the channel won't seem empty, when it really is, and that could lead to stream never closing properly. This should be backported to 1.9. --- include/proto/channel.h | 1 + 1 file changed, 1 insertion(+) diff --git a/include/proto/channel.h b/include/proto/channel.h index cf8505899..b2cd5c374 100644 --- a/include/proto/channel.h +++ b/include/proto/channel.h @@ -545,6 +545,7 @@ static inline void channel_check_timeouts(struct channel *chn) static inline void channel_erase(struct channel *chn) { chn->to_forward = 0; + chn->output = 0; b_reset(&chn->buf); }