]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn: Wake applets on sending path if there is a pending shutdown
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Sep 2023 11:55:42 +0000 (13:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 1 Sep 2023 12:18:26 +0000 (14:18 +0200)
commit0b93ff8c87d6813372a28e9af0af86beeae2ec28
treee1f6daf20453d542ff5f0f4a4845dfe51da3a552
parent9e394d34e061dfeb01b590ce48911a6d717dfde5
BUG/MEDIUM: stconn: Wake applets on sending path if there is a pending shutdown

An applet is not woken up on sending path if it is not waiting for data or
if it states it will not consume data. However, it is important to still
wake it up if there is a pending shutdown. Otherwise, the event may be
missed and some data may remain blocked in the channel's buffer.

Because of this bug, it is possible to have a stream stuck if data are also
blocked on the opposite channel. It is for instance possible to hit the buf
with the stats applet and a client not consuming data.

This patch must slowly be backported as far as 2.2. It should partially fix
issue #2249.
src/stconn.c