]> git.ipfire.org Git - thirdparty/haproxy.git/commit
REORG: listener: move the receiving FD to struct receiver
authorWilly Tarreau <w@1wt.eu>
Thu, 27 Aug 2020 06:16:52 +0000 (08:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 16 Sep 2020 20:08:03 +0000 (22:08 +0200)
commit38ba647f9f35660fad94ea5ed01927d7d749ae4b
tree5e30f1d0dd730eef7a17c23460bf8143854d48ed
parent371590661e66ba21380bd1a8c0b4dd9659ba8999
REORG: listener: move the receiving FD to struct receiver

The listening socket is represented by its file descriptor, which is
generic to all receivers and not just listeners, so it must move to
the rx struct.

It's worth noting that in order to extend receivers and listeners to
other protocols such as QUIC, we'll need other handles than file
descriptors here, and that either a union or a cast to uintptr_t
will have to be used. This was not done yet and the field was
preserved under the name "fd" to avoid adding confusion.
include/haproxy/listener-t.h
src/frontend.c
src/haproxy.c
src/listener.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c
src/proxy.c