commit | 9378bbe0bef4005155ddf56a54a27d1fcb8b93e0 | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Thu Oct 15 10:09:31 2020 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Thu Oct 15 21:47:56 2020 +0200 |
tree | ac4872a282572592aa8a526b5097b87faaf6cc4f | |
parent | 344b8fcf8730e0facf6fdda5b18731f53c3a773f [diff] |
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.