From: Christopher Faulet Date: Thu, 9 Jul 2026 14:17:46 +0000 (+0200) Subject: MINOR: stats-html: Detect a complete request by testing flags on the tail bloc X-Git-Tag: v3.5-dev8~161 X-Git-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=e54d528b4016d318853a56e8aa4576325c52ba04;p=haproxy.git MINOR: stats-html: Detect a complete request by testing flags on the tail bloc In the HTTP stats applet, when a POST is received, instead of testing the HTX_FL_HAS_EOM flag on the message itself, we are now relying on the tail bloc to know if the end of the request was received or not, by testing its flags. --- diff --git a/src/stats-html.c b/src/stats-html.c index ad018d7af..2a98e1d35 100644 --- a/src/stats-html.c +++ b/src/stats-html.c @@ -1688,7 +1688,8 @@ static int stats_process_http_post(struct stconn *sc) struct htx_blk *blk; /* we need more data */ - if (!(htx->flags & HTX_FL_HAS_EOM)) { + blk = ASSUME_NONNULL(htx_get_tail_blk(htx)); + if (!(blk->flags & HTX_BLK_FL_EOM)) { /* check if we can receive more */ if (applet_fl_test(appctx, APPCTX_FL_INBLK_FULL)) { ctx->st_code = STAT_STATUS_EXCD;