]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: h2: stop relying on H2_SS_IDLE / H2_SS_CLOSED
authorWilly Tarreau <w@1wt.eu>
Fri, 5 Oct 2018 08:16:37 +0000 (10:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 12 Oct 2018 14:58:01 +0000 (16:58 +0200)
commitab0e1da3a9c09fcaf9949671f94a5a98ce5600fb
tree8cbdea921e856c1c512072bc278bc85c4bab9364
parentc1f40b38a6a27f2c5977cab098297d2f01108a54
MEDIUM: h2: stop relying on H2_SS_IDLE / H2_SS_CLOSED

At a few places we check these states to detect if a stream has valid
data/errcode or is one of the two dummy streams (idle or closed). It
will become problematic for outgoing streams as it will not be possible
to report errors for example since the stream will switch from IDLE
state only after sending a HEADERS frame.

There is a safer solution consisting in checking the stream ID, which
may only be zero in the dummy streams. This patch changes the test to
only rely on the stream ID.
src/mux_h2.c