From: Christopher Faulet Date: Tue, 16 Apr 2019 18:26:53 +0000 (+0200) Subject: BUG/MINOR: mux-h1: Don't switch the parser in busy mode if other side has done X-Git-Tag: v2.0-dev3~250 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2f320ee59c42800db3151dc50f5882bc745988d4;p=thirdparty%2Fhaproxy.git BUG/MINOR: mux-h1: Don't switch the parser in busy mode if other side has done There is no reaon to switch the input parser in busy mode if all the output has been processed. This patch must be backported to 1.9. --- diff --git a/src/mux_h1.c b/src/mux_h1.c index 7b17225245..32da39980e 100644 --- a/src/mux_h1.c +++ b/src/mux_h1.c @@ -1337,7 +1337,8 @@ static size_t h1_process_input(struct h1c *h1c, struct buffer *buf, int flags) break; } else if (h1m->state == H1_MSG_DONE) { - h1c->flags |= H1C_F_IN_BUSY; + if (h1s->req.state < H1_MSG_DONE || h1s->res.state < H1_MSG_DONE) + h1c->flags |= H1C_F_IN_BUSY; break; } else if (h1m->state == H1_MSG_TUNNEL) {