]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-spop: Truly drain outgoing data when the stream is closed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 15:14:23 +0000 (17:14 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 18:51:41 +0000 (20:51 +0200)
commit86b664445d1bff47036d2fe53ca6e908d3d759f3
tree40fdc7c39c2ca0c58fdd1da5275e817817e836c8
parentf19e9c69f2ea35c478c78c460f4b3623d25a2896
BUG/MEDIUM: mux-spop: Truly drain outgoing data when the stream is closed

After the H2 and the FCGI multiplexers, it is the third mux concerned by
this issue.

When we try to send data to the server and the stream is closed (in error,
in half-closed state or fully closed), remaining data must be drained. This
way the upper stream is able to properly handle the stream close.

However, there was a bug here. The mux claimed to have consumed these data
without draining them from the buffer. The issue was never reported on the
SPOP multiplexer. But, in theory, the same than for the FCGI multiplexer is
possible.

This patch must be backported as far as 3.2.
src/mux_spop.c