From: Christopher Faulet Date: Mon, 19 Nov 2018 20:58:10 +0000 (+0100) Subject: BUG/MINOR: stats/htx: Remove channel's output when the request is eaten X-Git-Tag: v1.9-dev8~40 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=9b95d311229d2e2389a1552ffc8ce8d451e2ec51;p=thirdparty%2Fhaproxy.git BUG/MINOR: stats/htx: Remove channel's output when the request is eaten The request is eaten when the stats applet have finished to send its response. It was removed from the channel's buffer, removing all HTX blocks till the EOM. But the channel's output was not reset, leaving the request channel in an undefined state. --- diff --git a/src/stats.c b/src/stats.c index 49a149526e..b082d810fa 100644 --- a/src/stats.c +++ b/src/stats.c @@ -3246,6 +3246,7 @@ static void htx_stats_io_handler(struct appctx *appctx) if (type == HTX_BLK_EOM) break; } + co_set_data(req, 0); if (htx_is_empty(req_htx)) { htx_reset(req_htx); b_set_data(&req->buf, 0);