]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: htx: Improve detection of fragmented/unordered HTX messages
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 3 Feb 2026 17:31:38 +0000 (18:31 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Wed, 18 Feb 2026 12:26:21 +0000 (13:26 +0100)
commit4f27a72d19c1fa95b6849e66e593aaf936b01553
tree132db10a59ccd8a13505f4d839f654a00e530224
parent0c6f2207fc870205c3001f2836a799838c035aff
MEDIUM: htx: Improve detection of fragmented/unordered HTX messages

First, an HTX flags was added to know when blocks are unordered. It may
happen when a header is added while part of the payload was already received
or when the start-line is replaced by an new one. In these cases, the blocks
indexes are in the right order but not the blocks payload. Knowing a message
is unordered can be useful to trigger a defragmentation, mainly to be able
to append data properly for instance.

Then, detection of fragmented messages was improved, especially when a
header or a start-line is replaced by a new one.

Finally, when data are added in a message and cannot be appended into the
previous DATA block because the message is not aligned, a defragmentation is
performed to realign the message and append data.
include/haproxy/htx-t.h
include/haproxy/htx.h
src/htx.c