From 3eabe9b174a245a8591f0fafc7f565914ae86f9a Mon Sep 17 00:00:00 2001 From: Willy Tarreau Date: Tue, 7 Nov 2017 11:03:01 +0100 Subject: [PATCH] BUG/MEDIUM: h2: properly send the GOAWAY frame in the mux A typo on a condition prevented H2_CS_ERROR from being processed, leading to an infinite loop on connection error. --- src/mux_h2.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mux_h2.c b/src/mux_h2.c index 28b168489..aea1f98d8 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c @@ -1871,7 +1871,7 @@ static int h2_process_mux(struct h2c *h2c) } fail: - if (unlikely(h2c->st0 > H2_CS_ERROR)) { + if (unlikely(h2c->st0 >= H2_CS_ERROR)) { if (h2c->st0 == H2_CS_ERROR) { if (h2c->max_id >= 0) { h2c_send_goaway_error(h2c, NULL);