]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-int: automatically call si_cs_recv_cb() if the cs has data on wake()
authorWilly Tarreau <w@1wt.eu>
Mon, 26 Feb 2018 19:08:13 +0000 (20:08 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 20 Jul 2018 17:21:43 +0000 (19:21 +0200)
commit67b1e78f6818b121ffb8fc42c61fd2653b82fca7
tree6e94b36e1f34f71a544396b27b03e268ade95cff
parent11c9aa424e2e4fd3e14f96559a68527550561cc1
MEDIUM: stream-int: automatically call si_cs_recv_cb() if the cs has data on wake()

If the cs has data pending or shutdown and the input channel is still
waiting for reads, let's simply call the recv() function from the wake()
callback. This will allow the lower layers to simply wake the upper one
up without having to consider the recv() nor anything else.
src/stream_interface.c