mirror of
https://github.com/haproxy/haproxy.git
synced 2026-02-18 18:19:39 -05:00
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.
This commit is contained in:
parent
4f27a72d19
commit
f559c202fb
1 changed files with 3 additions and 0 deletions
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in a new issue