]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-fcgi: Be sure to never set EOM flag on an empty HTX message
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 May 2022 07:24:52 +0000 (09:24 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 5 May 2022 07:24:55 +0000 (09:24 +0200)
commit2db904e86c5f19e12d30b8746a622bcb072d914a
tree3dcb203331c1bfb540c535acea1608f54d8a2183
parentc41f93c5cd9322b0f6e9a7e6a8f43c16e97f0877
BUG/MEDIUM: mux-fcgi: Be sure to never set EOM flag on an empty HTX message

This bug was already fixed at many places (stats, promex, lua) but the FCGI
multiplexer is also affected. When there is no content-length specified in
the response and when the END_REQUEST record is delayed, the response may be
truncated because an abort is erroneously detected. If the connection is not
closed because "keep-conn" option is set, the response is aborted at the end
of the server timeout.

This bug is a design issue with the HTX. It should be addressed. But it will
probably not be possible to backport them as far as 2.4. So, for now, the
only solution is to explicitly add an EOT block with the EOM flag in this
case.

This patch should fix the issue #1682. It must be backported as far as 2.4.
src/mux_fcgi.c