]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: make h2s_wake_one_stream() not depend on temporary CS flags
authorWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 15:48:59 +0000 (17:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 13:47:57 +0000 (15:47 +0200)
commitaebbe5ef7229f0b54ad037e85df1f3eeb6f95fbd
tree2ab6842dec05d26d0c376959b273ac356a0030d4
parent13b6c2e8b3db4d7cda47a53f179537f1e94419c6
MINOR: mux-h2: make h2s_wake_one_stream() not depend on temporary CS flags

In h2s_wake_one_stream() we used to rely on the temporary flags used to
adjust the CS to determine the new h2s state. This really is not convenient
and creates far too many dependencies. This commit just moves the same
condition to the places where the temporary flags were set so that we
don't have to rely on these anymore. Whether these are relevant or not
was not the subject of the operation, what matters was to make sure the
conditions to adjust the stream's state and the CS's flags remain the
same. Later it could be studied if these conditions are correct or not.
src/mux_h2.c