]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream_interface: Avoid calling si_cs_send/recv if not needed.
authorOlivier Houchard <ohouchard@haproxy.com>
Mon, 22 Oct 2018 14:01:09 +0000 (16:01 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 22 Oct 2018 14:05:08 +0000 (16:05 +0200)
commit31f04e44162f9d4b55ce9032264a919e959cd7cc
tree2ae1aeeb6bbc8666dc219f975a58441d0b7adff8
parent627505d36a1ef9a34eeeb22965cfff44540a1c05
MINOR: stream_interface: Avoid calling si_cs_send/recv if not needed.

Don't bother calling si_cs_send and si_cs_recv if we're either already
subscribe, or if the output buffer is empty for si_cs_send.
src/stream.c
src/stream_interface.c