From 87d74d5655e02a0d845ed06e55e0d21f24d54096 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 7 Mar 2022 15:56:20 +0100 Subject: [PATCH] BUG/MINOR: promex: 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 bef64b23b7e7b4cdcfa201f17053ee58f43c6802) Signed-off-by: Christopher Faulet --- addons/promex/service-prometheus.c | 1 + 1 file changed, 1 insertion(+) diff --git a/addons/promex/service-prometheus.c b/addons/promex/service-prometheus.c index ef21700..0a90fd5 100644 --- a/addons/promex/service-prometheus.c +++ b/addons/promex/service-prometheus.c @@ -1511,6 +1511,7 @@ static void promex_appctx_handle_io(struct appctx *appctx) case PROMEX_ST_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 = PROMEX_ST_END; /* fall through */ -- 1.7.10.4