]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MEDIUM: mux-fcgi: Truly drain outgoing HTX data when the stream is closed
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 14:35:54 +0000 (16:35 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Jun 2026 18:51:41 +0000 (20:51 +0200)
commit7668409cf23855ee55a36086160ac79950ed4e95
treeff71dac33011ac72eff977e717f7144cb64a4ef4
parent6c69d6b2b19552365692a38d78230dd2851a4f8d
BUG/MEDIUM: mux-fcgi: Truly drain outgoing HTX data when the stream is closed

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. So the upper stream will try to send
these data in loop. Because of this bug, it is possible to trigger the
watchdog with a bogus stream.

This patch should fix the issue #3425. It must be backported to all
supported versions.
src/mux_fcgi.c