From 2f320ee59c42800db3151dc50f5882bc745988d4 Mon Sep 17 00:00:00 2001 From: Christopher Faulet Date: Tue, 16 Apr 2019 20:26:53 +0200 Subject: [PATCH] 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. --- src/mux_h1.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/mux_h1.c b/src/mux_h1.c index 7b1722524..32da39980 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) {