]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-h2: Truly drain outgoing HTX data when the stream is closed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 14:57:40 +0000 (16:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 18:51:41 +0000 (20:51 +0200)
commitf19e9c69f2ea35c478c78c460f4b3623d25a2896
treefaf00c5c850a2167ebec7de7410fb467914d1649
parent7668409cf23855ee55a36086160ac79950ed4e95
BUG/MEDIUM: mux-h2: Truly drain outgoing HTX data when the stream is closed

It is the same bug than the previous one on the FCGI mux.

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
H2 multiplexer. But, in theory, the same than for the FCGI multiplexer is
possible.

Tihs patch must be backported to all supported versions.
src/mux_h2.c