MINOR: htx: Add an HTX flag to know when a message is fragmented
authorChristopher Faulet <cfaulet@haproxy.com>
Tue, 21 Sep 2021 13:39:30 +0000 (15:39 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 23 Sep 2021 14:19:36 +0000 (16:19 +0200)
commit4697c92c9d7f875b30413a20bfeb56f318c182d1
tree55997dd862b0cab78be783280fa28b66a157b557
parent68a14db573dbcf1385ce1a70d5ca477768a61d4a
MINOR: htx: Add an HTX flag to know when a message is fragmented

HTX_FL_FRAGMENTED flag is now set on an HTX message when it is
fragmented. It happens when an HTX block is removed in the middle of the
message and flagged as unused. HTX_FL_FRAGMENTED flag is removed when all
data are removed from the message or when the message is defragmented.

Note that some optimisations are still possible because the flag can be
avoided in other situations. For instance when the last header of a bodyless
message is removed.
include/haproxy/htx-t.h
src/htx.c