MINOR: mux-h1: Add a flag to disable reads to wait opposite side
authorChristopher Faulet <cfaulet@haproxy.com>
Mon, 21 Sep 2020 08:57:52 +0000 (10:57 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Fri, 4 Dec 2020 13:41:48 +0000 (14:41 +0100)
commit089acd5b0d0f735295289fc2479493c397471024
tree2af6b6685739021c44d78cc577f806816621f4d3
parent26256f86e1aeb4253df5cb40c40ab0dee510a40a
MINOR: mux-h1: Add a flag to disable reads to wait opposite side

H1C_F_WAIT_OPPOSITE must be set on the H1 conenction to don't read more data
because we must be sync with the opposite side. This flag replaces the
H1C_F_IN_BUSY flag. Its name is a bit explicit. It is automatically set on
the backend side when the mux is created. It is safe to do so because at
this stage, the request has not yet been sent to the server. This way, in
h1_recv_allowed(), a test on this flag is enough to block the reads instead
of testing the H1 stream state on the backend side.
src/mux_h1.c