]> git.kaiwu.me - haproxy.git/commit
BUG/MINOR: http-ana: don't stop waiting for the body on a NOOP block
authorChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 09:10:49 +0000 (10:10 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 3 Dec 2026 12:41:06 +0000 (13:41 +0100)
commit7fefd2d7cbc8faee30bf1156bd6338da9e6ecc94
tree050e885fff9622bd9bf5ca0de01ba38161e478ab
parente0a2af08f46a35c5138a0164db44f35160bc242f
BUG/MINOR: http-ana: don't stop waiting for the body on a NOOP block

In http_wait_for_msg_body(), all the payload was considered as received
when the tail block of the HTX message was of a type greater than
HTX_BLK_DATA, to detect the trailers. But since the commit 221c40bbf
("MINOR: htx: Add a noop block to carry the EOM flag on an empty
message"), a NOOP block may be found anywhere in the message and its type
is greater than HTX_BLK_DATA. So a NOOP block without the EOM flag at the
end of the message stopped the wait, the rules being evaluated on a
partial payload. For now, such block can only be produced by the
HTTPMessage:unset_eom() Lua function.

Now, only TLR and EOT blocks are considered.

This patch must be backported to 3.5.
src/http_ana.c