From 9262914ef6c8c5158ed99bd108beedf4df306572 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 7 Mar 2022 15:52:42 +0100 Subject: [PATCH] BUG/MINOR: stats: Set conn-stream/channel EOI flags at the end of request This bug is the same than for the HTTP client. See "BUG/MINOR: httpclient: Set conn-stream/channel EOI flags at the end of request" for details. This patch must be backported as far as 2.0. But only CF_EOI must be set because applets are not attached to a conn-stream on older versions. (cherry picked from commit 3fa5d19d14e70986d366e7c21554a434c1daa64b) Signed-off-by: Christopher Faulet --- src/stats.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/stats.c b/src/stats.c index 3eecac8..d323d40 100644 --- a/src/stats.c +++ b/src/stats.c @@ -4317,6 +4317,7 @@ static void http_stats_io_handler(struct appctx *appctx) if (appctx->st0 == STAT_HTTP_DONE) { /* no more data are expected. Don't add TLR because mux-h1 will take care of it */ res_htx->flags |= HTX_FL_EOM; + res->flags |= CF_EOI; appctx->st0 = STAT_HTTP_END; } -- 1.7.10.4