]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: listener: use protocol->accept_conn() to accept a connection
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 08:09:31 +0000 (10:09 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 19:47:56 +0000 (21:47 +0200)
commit9378bbe0bef4005155ddf56a54a27d1fcb8b93e0
treeac4872a282572592aa8a526b5097b87faaf6cc4f
parent344b8fcf8730e0facf6fdda5b18731f53c3a773f
MEDIUM: listener: use protocol->accept_conn() to accept a connection

Now listener_accept() doesn't have to deal with the incoming FD anymore
(except for a little bit of side band stuff). It directly retrieves a
valid connection from the protocol layer, or receives a well-defined
error code that helps it decide how to proceed. This removes a lot of
hardly maintainable low-level code and opens the function to receive
new protocol stacks.
src/listener.c