mirror of
https://git.haproxy.org/git/haproxy.git/
synced 2026-05-04 12:41:00 +02:00
MINOR: listener: make sock_find_compatible_fd() check the socket type
sock_find_compatible_fd() can now access the protocol via the receiver hence it can access its socket type and know whether the receiver has dgram or stream sockets, so we don't need to hack around AF_CUST_UDP* anymore there.
This commit is contained in:
parent
b743661f04
commit
4dfabfed13
@ -366,10 +366,7 @@ int sock_find_compatible_fd(const struct listener *l)
|
||||
if (!l->rx.proto->addrcmp)
|
||||
return -1;
|
||||
|
||||
/* WT: this is not the right way to do it, it is temporary for the
|
||||
* transition to receivers.
|
||||
*/
|
||||
if (l->rx.addr.ss_family == AF_CUST_UDP4 || l->rx.addr.ss_family == AF_CUST_UDP6)
|
||||
if (l->rx.proto->sock_type == SOCK_DGRAM)
|
||||
options |= SOCK_XFER_OPT_DGRAM;
|
||||
|
||||
if (l->options & LI_O_FOREIGN)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user