From: Christopher Faulet Date: Wed, 8 Jul 2026 15:06:04 +0000 (+0200) Subject: MINOR: compression: Rely on HTX block flags to detect the end of message X-Git-Tag: v3.5-dev8~167 X-Git-Url: https://git.kaiwu.me/$%7BGITURL%7D$%7Bcid%7D?a=commitdiff_plain;h=60cb71e2de3b481c98a5e227beddcf5f0da8df3c;p=haproxy.git MINOR: compression: Rely on HTX block flags to detect the end of message Thanks to previous patches, instead of testing HTX_FL_HAS_EOM flag to detect the end of the message, we now rely on the flags on the HTX block. --- diff --git a/src/flt_http_comp.c b/src/flt_http_comp.c index f97c23288..e02e85eb8 100644 --- a/src/flt_http_comp.c +++ b/src/flt_http_comp.c @@ -313,7 +313,7 @@ comp_http_payload(struct stream *s, struct filter *filter, struct http_msg *msg, switch (type) { case HTX_BLK_DATA: /* it is the last data block */ - last = (!next && (st->flags & COMP_STATE_EOM_SEEN)); + last = (blk->flags & HTX_BLK_FL_EOM); v = htx_get_blk_value(htx, blk); v = istadv(v, offset); if (v.len > len) {