From 672f2633e7f8a213391e28982e266b366fda34dd Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Mon, 7 Mar 2022 15:50:54 +0100 Subject: [PATCH] BUG/MINOR: hlua: 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 d8d2708cfef417e3c4e2f627089b49e030ebbe80) Signed-off-by: Christopher Faulet --- src/hlua.c | 1 + 1 file changed, 1 insertion(+) diff --git a/src/hlua.c b/src/hlua.c index 87f417a..c8ac878 100644 --- a/src/hlua.c +++ b/src/hlua.c @@ -9539,6 +9539,7 @@ void hlua_applet_http_fct(struct appctx *ctx) /* 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; strm->txn->status = ctx->ctx.hlua_apphttp.status; ctx->ctx.hlua_apphttp.flags |= APPLET_RSP_SENT; } -- 1.7.10.4