]> 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, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commita771d82f3552a1036cbec8f3420e265c495c0ee8
tree49e4dac32a279b26ef944c2c63a8d3dcf1eee82a
parent21706e19b4022f34d246d5381df5ece5b33cf06f
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