]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: mux-fcgi: don't send the empty STDIN record twice
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Dec 2026 14:26:27 +0000 (15:26 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 2 Dec 2026 14:54:41 +0000 (15:54 +0100)
commit33fc3969ddd495dc18fdd15fb4a6411a2bef4017
treefd04e5296ea1077e3558610ea18345508295e4fa
parent3b6c63b9276354069d6dffa319eab2ca982e9fa4
BUG/MINOR: mux-fcgi: don't send the empty STDIN record twice

In fcgi_snd_buf(), when an EOT block carrying the EOM flag was found, an
empty STDIN record was sent to signal the end of the request. Then, the
NOOP case was also executed because of a fallthrough. The EOM flag was
tested again and a second empty STDIN record was sent. It happened when
the EOT block was processed separately from the request body. The
FastCGI application could then handle the second record as a protocol
error.

Now, EOT and NOOP blocks are handled the same way, and only one empty
STDIN record is sent.

No backport needed.
src/mux_fcgi.c