]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: stconn/stream: Forward shutdown on write timeout
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 06:59:33 +0000 (08:59 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 6 Sep 2023 07:29:27 +0000 (09:29 +0200)
commitb9c87f808288c833d14eefacb4894bdae32fbdc8
tree3cdb5723a898672b43879d6398fc1e2416d14542
parentd18657ae112aad2a87f80dfe006dc1a1bfc89d3a
BUG/MEDIUM: stconn/stream: Forward shutdown on write timeout

The commit 7f59d68fe2 ("BUG/MEDIIM: stconn: Flush output data before
forwarding close to write side") introduced a regression. When a write
timeout is detected, the shutdown is no longer forwarded. Dependig on the
channels state, it may block the processing, waiting the client or the
server leaves.

The commit above tries to avoid to truncate messages on shutdown but on
write timeout, if the channel is not empty, there is nothing more we can do
to send these data. It means the endpoint is unable to send data. In this
case, we must forward the shutdown.

This patch should be backported as far as 2.2.
src/stconn.c
src/stream.c