From: Willy Tarreau Date: Tue, 7 Nov 2017 10:03:01 +0000 (+0100) Subject: BUG/MEDIUM: h2: properly send the GOAWAY frame in the mux X-Git-Tag: v1.8-rc3~36 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3eabe9b174a245a8591f0fafc7f565914ae86f9a;p=thirdparty%2Fhaproxy.git 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. --- diff --git a/src/mux_h2.c b/src/mux_h2.c index 28b1684892..aea1f98d8b 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);