MINOR: sockpair: implement the .rx_listening function
authorWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2020 15:27:34 +0000 (17:27 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 13 Oct 2020 16:15:33 +0000 (18:15 +0200)
commitcc8b6534834b88c3ed9868f65625d8d7936a3a2a
tree95a0b4018e20d15cb1195081cd02e219dbba5671
parent29185140db2e1146e0363d74d551e9012ed87fba
MINOR: sockpair: implement the .rx_listening function

For socket pairs we don't rely on a real listening socket but we need to
have a properly connected UNIX stream socket. This is what the new
sockpair_accept_conn() tries to report. Some corner cases like half
shutdown will still not be detected but that should be sufficient for
most cases we really care about.
src/proto_sockpair.c