]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: mux-h2: stop relying on CS_FL_REOS
authorWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 09:46:28 +0000 (11:46 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 14 May 2019 13:47:57 +0000 (15:47 +0200)
commit99ad1b3e8c95a16c0270899b3675fc29a3143a7f
tree36f6ccc3530d13aea4f2f2ae993519fc0f74a34c
parent4c688eb8d1bf4b49d423d9ef5729db2f69a6e2d8
MINOR: mux-h2: stop relying on CS_FL_REOS

This flag was introduced early in 1.9 development (a3f7efe00) to report
the fact that the rxbuf that was present on the conn_stream was followed
by a shutr. Since then the rxbuf moved from the conn_stream to the h2s
(638b799b0) but the flag remained on the conn_stream. It is problematic
because some state transitions inside the mux depend on it, thus depend
on the CS, and as such have to test for its existence before proceeding.

This patch replaces the test on CS_FL_REOS with a test on the only
states that set this flag (H2_SS_CLOSED, H2_SS_HREM, H2_SS_ERROR).
The few places where the flag was set were removed (the flag is not
used by the data layer).
src/mux_h2.c