mirror of
https://github.com/haproxy/haproxy.git
synced 2026-04-27 00:57:03 -04:00
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:
parent
c6795ca7c1
commit
3eabe9b174
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue