MINOR: mux-h2: make h2_wake_some_streams() not depend on the CS flags
authorWilly Tarreau <w@1wt.eu>
Tue, 7 May 2019 13:23:14 +0000 (15:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 13:47:57 +0000 (15:47 +0200)
commit234829111f12b5de1c92ddfb59b1367dc7c75090
treea426dea80bb8940e6c23cec3e923c00b67b1d249
parentc3b1183f57250f8e969b22dc4718c63e601d685f
MINOR: mux-h2: make h2_wake_some_streams() not depend on the CS flags

It's problematic to have to pass some CS flags to this function because
that forces some h2s state transistions to update them just in time
while some of them are supposed to only be updated during I/O operations.

As a first step this patch transfers the decision to pass CS_FL_ERR_PENDING
from the caller to the leaf function h2s_wake_one_stream(). It is easy
since this is the only flag passed there and it depends on the position of
the stream relative to the last_sid if it was set.
src/mux_h2.c