]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Add HTX_BLK_FL_EOM flag and set it on last block of the message
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 14:46:12 +0000 (16:46 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 24 Jul 2026 10:20:43 +0000 (12:20 +0200)
commit77e18838f2a4370efd499d4550bb44b5dc062945
tree02e76347dba98b6d679d2f2aee524f898f86c72e
parent135e89140d35af8c6a6eed9e4e1e4aecc684450e
MEDIUM: htx: Add HTX_BLK_FL_EOM flag and set it on last block of the message

HTX_BLK_FL_EOM flag was introduced to be set on the last block of an HTX
message. It must be set on the tail block when the HTX_FL_HAS_EOM is set.
Now, only the HTX API must set these flags by hand. From outside of the HTX
API, htx_set_eom() function must be used.

A BUG_ON() was added to unsure the flag is added on valid blocks. It is possible
to add it on EOH, EOT and DATA blocks only.
include/haproxy/htx-t.h
include/haproxy/htx.h
src/hlua.c
src/htx.c