]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Skip UNUSED blocs when getting previous,next and first blocks
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 8 Jul 2026 08:38:12 +0000 (10:38 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commitfb968bb018fdaccdb33e1c105fd0de690292324d
treefda0d5b84811c48ef23712958f75c68bf8cc4d05
parent3a2f727536dc1b1cf12701b1af2508c66456c8df
MEDIUM: htx: Skip UNUSED blocs when getting previous,next and first blocks

htx_get_prev_blk(), htx_get_next_blk() and htx_get_first_blk() functions
were modified to automatically skip UNUSED blocks. So now, a valid block or
NULL is returned.  In addition, htx_remove_blk() was adapted accordingly to
also skip UNUSED blocks.

Thanks to this change, the loops on HTX messages could be simplified by
removing test on UNUSED blocks, while it remains harmless.
include/haproxy/htx.h
src/htx.c