From f559c202fbd2c0042621d1a4bf9386378e4fb434 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 10 Feb 2026 18:33:02 +0100 Subject: [PATCH] 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. --- src/http_ana.c | 3 +++ 1 file changed, 3 insertions(+) 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: