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.
This commit is contained in:
Willy Tarreau 2017-11-07 11:03:01 +01:00
parent c6795ca7c1
commit 3eabe9b174

View file

@ -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);