]> git.kaiwu.me - haproxy.git/commit
BUG/MEDIUM: stream-int: always clear CS_FL_WANT_ROOM before receiving
authorWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 08:15:43 +0000 (09:15 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 18 Dec 2018 09:34:26 +0000 (10:34 +0100)
commit7ab99a302d37d3d39ee6c8094e3a0c154ce5896b
treebab19649b2104e4920c278cdc60edda722a890ab
parent121c4e0bca9d49c276c4896a1bfd6301360e18e2
BUG/MEDIUM: stream-int: always clear CS_FL_WANT_ROOM before receiving

Commit d94f877cd ("BUG/MINOR: mux_pt: Set CS_FL_WANT_ROOM when count is
zero in rcv_buf() callback") triggered a pending issue with this flag,
which is that it's cleared too late and sometimes causes some Rx
transfers to stall. We need to clear it before attempting to receive
otherwise we may risk to see an earlier copy of the flag.

Note that it should probably be defined that this flag could be purged
on each invocation of mux->rcv_buf(), which would make sense.

No backport is needed.
src/stream_interface.c