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.
diff --git a/include/proto/channel.h b/include/proto/channel.h
index cf85058..b2cd5c3 100644
--- a/include/proto/channel.h
+++ b/include/proto/channel.h
@@ -545,6 +545,7 @@
static inline void channel_erase(struct channel *chn)
{
chn->to_forward = 0;
+ chn->output = 0;
b_reset(&chn->buf);
}