]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: update callers of ctrl->drain() to use conn_drain()
authorWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 11:10:52 +0000 (12:10 +0100)
committerWilly Tarreau <w@1wt.eu>
Mon, 20 Jan 2014 21:27:17 +0000 (22:27 +0100)
commit46be2e50396be22c54e781fd5accdbee1ef70115
tree97fd83b37dad4689dad619e2110a84364cb12e67
parent3bd3e57a9b910c371f88d26d5554ca255ca1eb96
MEDIUM: connection: update callers of ctrl->drain() to use conn_drain()

Now we can more safely rely on the connection state to decide how to
drain and what to do when data are drained. Callers don't need to
manipulate the file descriptor's state anymore.

Note that it also removes the need for the fix ea90063 ("BUG/MEDIUM:
stream-int: fix the keep-alive idle connection handler") since conn_drain()
correctly sets the polling flags.
src/checks.c
src/ssl_sock.c
src/stream_interface.c