]> git.kaiwu.me - haproxy.git/commit
MINOR: htx: Add support for flags on HTX blocks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 13:23:11 +0000 (15:23 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commit3a8bc71e460bd40c8cb260c553ff04e0294d4dda
treed433f724af034115fd4f4a79d0a89c3b1d61a9e8
parent0a9ecebdaaa36710cb4aae3a7a1feb8d9f9cf07f
MINOR: htx: Add support for flags on HTX blocks

In the commit 32b51cdf3 ("BUG/MINOR: config: reject configs using HTTP with
bufsize >= 256 MB"), the maximum possible size for buffers is limited to 256
MB. So, on HTX side, it means a bloc cannot have a relative address higher
than this value. So on the 32-bits integer used to store the relative block
address, only 28 bits can be used, and 4 bits remains unused.

So these 4 bits were reused to store flags on block themselves. In this
patch, the support for these flags is introduced and the HTX API was adapted
to deal with it.
include/haproxy/htx-t.h
include/haproxy/htx.h
src/htx.c