]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: connection: move the socket iocb (conn_fd_handler) to sock.c
authorWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 14:54:36 +0000 (15:54 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 11 Dec 2020 15:26:00 +0000 (16:26 +0100)
commit586f71b43f05a36444367a9e7aca560b83307100
treedb7662f7a357f7fcfe2ed0f6114f0ac08673583a
parent827fee7406feab23adf679303d3be7111eeaf568
REORG: connection: move the socket iocb (conn_fd_handler) to sock.c

conn_fd_handler() is 100% specific to socket code. It's about time
it moves to sock.c which manipulates socket FDs. With it comes
conn_fd_check() which tests for the socket's readiness. The ugly
connection status check at the end of the iocb was moved to an inlined
function in connection.h so that if we need it for other socket layers
it's not too hard to reuse.

The code was really only moved and not changed at all.
include/haproxy/connection.h
include/haproxy/fd.h
include/haproxy/sock.h
src/cli.c
src/connection.c
src/sock.c
src/tools.c