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-Url: https://git.kaiwu.me/?a=commitdiff_plain;h=f25a059919116ea376ca33e85ba23988e7bc3391;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 533da726d..e6d020fc3 100644 --- a/src/stats-html.c +++ b/src/stats-html.c @@ -1668,7 +1668,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;