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.
This commit is contained in:
Olivier Houchard 2019-05-02 00:58:53 +02:00 committed by Willy Tarreau
parent e99af978c8
commit 55071d30ca

View File

@ -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);
}