]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: add check for readiness in I/O handlers
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 14:13:07 +0000 (15:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Sat, 25 Jan 2014 23:42:30 +0000 (00:42 +0100)
commitfd803bb4d7272deeb9c6847ca01e9e51bc52ffbb
tree11e174f6c007c4b0b0c4d84c42b9f3ea498fe392
parente1f50c4b025330511cca1b5218d2f4537743ea19
MEDIUM: connection: add check for readiness in I/O handlers

The recv/send callbacks must check for readiness themselves instead of
having their callers do it. This will strengthen the test and will also
ensure we never refrain from calling a handshake handler because a
direction is being polled while the other one is ready.
src/connection.c
src/proto_tcp.c
src/raw_sock.c
src/stream_interface.c