From: Christopher Faulet Date: Tue, 10 Feb 2026 17:33:02 +0000 (+0100) Subject: MINOR: http-ana: Do a defrag on unaligned HTX message when waiting for payload X-Git-Tag: v3.4-dev5~35 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f559c202fbd2c0042621d1a4bf9386378e4fb434;p=thirdparty%2Fhaproxy.git MINOR: http-ana: Do a defrag on unaligned HTX message when waiting for payload When we are waiting for the request or response payload, it is usually because the payload will be analyzed in a way or another. So, perform a defrag if necessary. This should ease payload analyzis. --- diff --git a/src/http_ana.c b/src/http_ana.c index 0f52ba3f1..4f6df2ea4 100644 --- a/src/http_ana.c +++ b/src/http_ana.c @@ -4326,6 +4326,9 @@ enum rule_result http_wait_for_msg_body(struct stream *s, struct channel *chn, end: if (ret != HTTP_RULE_RES_YIELD) chn->analyse_exp = TICK_ETERNITY; + + if (htx->flags & (HTX_FL_FRAGMENTED|HTX_FL_UNORDERED)) + htx_defrag(htx, NULL, 0); return ret; abort: