MINOR: listeners: split do_unbind_listener() in two
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 15:18:29 +0000 (17:18 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 16:44:37 +0000 (18:44 +0200)
commit7b2febde1d3dd1f9d48452e3c6daea1a7ff830a1
tree10ec95c169770e9bbaaa4a7a62b1fb1ee1930d81
parentf58b8db47be6a85468e95c1708441f68f63f7ce9
MINOR: listeners: split do_unbind_listener() in two

The inner part now goes into the protocol and is used to decide how to
unbind a given protocol's listener. The existing code which is able to
also unbind the receiver was provided as a default function that we
currently use everywhere. Some complex listeners like QUIC will use this
to decide how to unbind without impacting existing connections, possibly
by setting up other incoming paths for the traffic.
include/haproxy/listener.h
include/haproxy/protocol-t.h
src/listener.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c