mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-01-30 06:22:00 +01:00
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:
parent
e99af978c8
commit
55071d30ca
@ -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);
|
||||
}
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user