]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MEDIUM: mux-h2: pass CS_FL_ERR_PENDING to h2_wake_some_streams()
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 19 Dec 2018 13:49:39 +0000 (14:49 +0100)
committerWilly Tarreau <w@1wt.eu>
Wed, 19 Dec 2018 16:06:49 +0000 (17:06 +0100)
Commiy 8519357c ("BUG/MEDIUM: mux-h2: report asynchronous errors in
h2_wake_some_streams()") addressed an issue with synchronous errors
but forgot to fix the call places to also pass CS_FL_ERR_PENDING
instead of CS_FL_ERROR.

No backport is needed.

src/mux_h2.c

index fa7b26f23d22772ca92b82a49b77d26c79a3db4d..d61205f681640efe98e6b2d1ca2c49362988fea0 100644 (file)
@@ -1668,7 +1668,7 @@ static int h2c_handle_goaway(struct h2c *h2c)
 
        last = h2_get_n32(&h2c->dbuf, 0);
        h2c->errcode = h2_get_n32(&h2c->dbuf, 4);
-       h2_wake_some_streams(h2c, last, CS_FL_ERROR);
+       h2_wake_some_streams(h2c, last, CS_FL_ERR_PENDING);
        if (h2c->last_sid < 0)
                h2c->last_sid = last;
        return 1;