]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: stream-int: make si_sync_recv() simply check ENDP before si_cs_recv()
authorWilly Tarreau <w@1wt.eu>
Fri, 16 Nov 2018 13:26:11 +0000 (14:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Sun, 18 Nov 2018 20:41:48 +0000 (21:41 +0100)
commit7f494d0c5e489e2a5a3c63a313b9ace5f00801e3
tree6b8e9a06e805c745eb5eb2f281a3d7ccdbd655e7
parentdd5621ab809474675bef7bf435b931e583238fad
MINOR: stream-int: make si_sync_recv() simply check ENDP before si_cs_recv()

Instead of checking complex conditions to call si_cs_recv() upon first
call, let's simply use si_rx_endp_ready() now that si_cs_recv() reports
it accurately, and add si_rx_blocked() to cover any blocking situation.
include/proto/stream_interface.h