]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: update the endp polling status only at the end of si_cs_recv()
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Nov 2018 15:55:14 +0000 (16:55 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:41:47 +0000 (21:41 +0100)
commitdd5621ab809474675bef7bf435b931e583238fad
tree4b946106ea3a3bc09edc5304e9562d75a90dba1e
parent8bb2ffb831cd6237cbf92af0d9141a1a0363cba8
MEDIUM: stream-int: update the endp polling status only at the end of si_cs_recv()

Instead of first indicating that there's more data to read from the
conn_stream then re-adjusting this info along the function, we now
instead set the status according to the subscription status at the
end. It's easier, more accurate, and less sensitive to intermediary
changes.

This will soon allow to remove all the si_cant_put() calls that were
placed in the middle to force a subsequent callback and prevent the
function from subscribing to the mux layer.
src/stream_interface.c