]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: sockpair: implement sockpair_accept_conn() to accept a connection
authorWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 07:43:31 +0000 (09:43 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 15 Oct 2020 19:47:56 +0000 (21:47 +0200)
commit344b8fcf8730e0facf6fdda5b18731f53c3a773f
treee06c77eeaa5615c0b04ae9ede5e8b99b52d09ce0
parentf1dc9f2f175c94c0a0109d8d3a4f9f14a30a47b0
MINOR: sockpair: implement sockpair_accept_conn() to accept a connection

This is the same as previous commit, but this time for the sockpair-
specific stuff, relying on recv_fd_uxst() instead of accept(), so the
code is simpler. The various errno cases are handled like for regular
sockets, though some of them will probably never happen, but this does
not hurt.
src/proto_sockpair.c
src/sock.c