]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MINOR: stats/htx: Remove channel's output when the request is eaten
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 19 Nov 2018 20:58:10 +0000 (21:58 +0100)
committerChristopher Faulet <cfaulet@haproxy.com>
Tue, 20 Nov 2018 13:31:44 +0000 (14:31 +0100)
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.

src/stats.c

index 49a149526e82a48c1063087dae736285bb527d06..b082d810fada6592eaf9ba987c6624dddacf5794 100644 (file)
@@ -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);