]> 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, 24 Jul 2026 09:58:25 +0000 (11:58 +0200)
commitb680af702c1700a36e792e484d692bab737890c7
tree24c98e958358c9964cd341869bcb078be1772959
parent54f150155706aac2d359d4d9bb22fdf6a7d12ab1
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