]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stconn: Fix abort on close when a large buffer is used
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 13 Mar 2026 08:06:43 +0000 (09:06 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 17 Mar 2026 06:48:01 +0000 (07:48 +0100)
commitcd918380429a1a92d2316c14640d633e56d5c591
treeaf2aa3887f27cfdc7915540889efc8b2bc2a4d31
parentb3be3b94a0898cec419261280e6241e6fee7e24f
BUG/MEDIUM: stconn: Fix abort on close when a large buffer is used

When a large buffer is used on a channel, once we've started to send data to
the opposite side, receives are blocked temporarily to be sure to flush the
large buffer ASAP to be able to fall back on regular buffers. This was
performed by skipping call to the endpoint (connection or applet). Howerver,
doing so, this broken the abortonclose and more generally this masked any
shut or error events reported by the lower layer.

To fix the issue, instead of skipping receives, we now try a receive but
with a requested size set to 0.

No backport needed
src/stconn.c