]> 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, 24 Jul 2026 09:58:25 +0000 (11:58 +0200)
commit298f6b9355b992bf67f98ff03b93de28e7969481
treeda2300396b1a5c058a9820143d2245cfc3f3fce8
parenta98518a803d00c54b2c830319fdfbd3189aca97a
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