]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Harden HTX API to avoid invalid uses when EOM was reached
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Sep 2026 14:21:12 +0000 (16:21 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commit5fb43f01790a97ba4b4a562bda565a304f917ff1
tree9832cc5924ba5305b3d5e6a13d916ad6a1d37c5b
parentd11682dfc0313ced9380a510f05c7add562556cf
MEDIUM: htx: Harden HTX API to avoid invalid uses when EOM was reached

With recent changes, the info about the end of the message is now carried by
a block only. In addition, it is really important to never mix HTTP blocks
with tunneled data because we must be able at any time to test the tail
block to know if the EOM flag is set or not. To avoid any invalid uses, the
API was reinforced. BUG_ONs were added to trigger errors when such uses are
detected.

Note it should not be a huge change because mixing http data and tunneled
data was already not supported.
include/haproxy/htx.h
src/htx.c