mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-24 23:58:34 -04:00
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.
This commit is contained in:
parent
d8d2708cfe
commit
3fa5d19d14
1 changed files with 2 additions and 0 deletions
|
|
@ -4318,6 +4318,8 @@ 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;
|
||||
si->cs->flags |= CS_FL_EOI;
|
||||
res->flags |= CF_EOI;
|
||||
appctx->st0 = STAT_HTTP_END;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue