]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: mux-fcgi: Properly handle full buffer for FCGI_PARAM record
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 11:21:28 +0000 (13:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 29 Apr 2026 13:26:13 +0000 (15:26 +0200)
commit57faf0971593e45c17fd03ddb2034c736411efbe
tree815c3f4623b66553fd7b84325d32b3451ccfc512
parent80ca27be4274ffa2bebd39871747b4a73c393980
BUG/MEDIUM: mux-fcgi: Properly handle full buffer for FCGI_PARAM record

The function encoding and sending FCGI_PARAM records was reworked to
properly deal with full buffer. An error must be triggered only when the
parameters cannot be encoded while the mbuf is empty (or the free space is
greater than the max record size). Otherwise we must wait and retry later.

Before, an error was triggered on encoding error if any HTX block was
consumed, regarless the mbuf state. Now, blocks are removed on success
only. So we can wait for more space.

This patch should fix the issue #3346. It should be backported to all stable
versions.
src/mux_fcgi.c