commit | 3eabe9b174a245a8591f0fafc7f565914ae86f9a | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Tue Nov 07 11:03:01 2017 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Nov 07 11:03:01 2017 +0100 |
tree | 1b02f11f5f7f0483c053c827286663e3def0002d | |
parent | c6795ca7c1845746838c27f4cc201aa560733af1 [diff] |
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 28b1684..aea1f98 100644 --- a/src/mux_h2.c +++ b/src/mux_h2.c
@@ -1871,7 +1871,7 @@ } 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);