mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2025-09-21 22:01:31 +02:00
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.
This commit is contained in:
parent
3d4332419c
commit
d8d2708cfe
@ -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 */
|
/* no more data are expected. Don't add TLR because mux-h1 will take care of it */
|
||||||
res_htx->flags |= HTX_FL_EOM;
|
res_htx->flags |= HTX_FL_EOM;
|
||||||
|
si->cs->flags |= CS_FL_EOI;
|
||||||
|
res->flags |= CF_EOI;
|
||||||
strm->txn->status = ctx->ctx.hlua_apphttp.status;
|
strm->txn->status = ctx->ctx.hlua_apphttp.status;
|
||||||
ctx->ctx.hlua_apphttp.flags |= APPLET_RSP_SENT;
|
ctx->ctx.hlua_apphttp.flags |= APPLET_RSP_SENT;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user