]> git.kaiwu.me - haproxy.git/commit
MEDIUM: htx: Remove usless htx_is_unique_blk() function
authorChristopher Faulet <cfaulet@haproxy.com>
Fri, 11 Sep 2026 13:42:50 +0000 (15:42 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 18 Sep 2026 15:05:18 +0000 (17:05 +0200)
commit7420438306e14fd5b65fff7b9a9be62ff5491ee8
tree43746c8a563137e25b6ede05a9244cc11bef17c8
parent5fb43f01790a97ba4b4a562bda565a304f917ff1
MEDIUM: htx: Remove usless htx_is_unique_blk() function

Tagged as MEDIUM while it is only a code cleanup, but this function may
still be used by external code. It is an API change.

This function is no longer used but it is also useless. Indeed, thanks to
recent changes, it is not possible to have unused HTX blocks on head and
tail of the message. So, htx_is_unique_blk() can be replaced by a test on
the number of blocks in the message.

In addition, this function was almost always used to know if the EOM flag on
the message can be processed. Now, the info is on the block itself. So no
reason to still use this function. It should disappear naturally with
modifications to handle all recent changes.

So, let's remove it now.
include/haproxy/htx.h