]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: hlua: Set conn-stream/channel EOI flags at the end of request
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 7 Mar 2022 14:50:54 +0000 (15:50 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 8 Mar 2022 17:24:16 +0000 (18:24 +0100)
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.

src/hlua.c

index 90f6a739e82573f3d07cd1c712650ea69a6f1c05..34d271f685e1ffd0837d3a6bdeeaa5cd24cd9b03 100644 (file)
@@ -9567,6 +9567,8 @@ 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;
+               si->cs->flags |= CS_FL_EOI;
+               res->flags |= CF_EOI;
                strm->txn->status = ctx->ctx.hlua_apphttp.status;
                ctx->ctx.hlua_apphttp.flags |= APPLET_RSP_SENT;
        }