]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic: startup detect for quic-conn owned socket support
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 21 Nov 2022 09:04:14 +0000 (10:04 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 2 Dec 2022 13:45:43 +0000 (14:45 +0100)
commit75839a44e7e904bd1e332b58bd579e03b6d106f0
treef95aab14671486557bb2cf9fb4293ce03f27b373
parenteb6be98a65c1ab2e89b60fef5fea2f2a2a5e9b82
MINOR: quic: startup detect for quic-conn owned socket support

To be able to use individual sockets for QUIC connections, we rely on
the OS network stack which must support UDP sockets binding on the same
local address.

Add a detection code for this feature executed on startup. When the
first QUIC listener socket is binded, a test socket is created and
binded on the same address. If the bind call fails, we consider that
it's impossible to use individual socket for QUIC connections.

A new global option GTUNE_QUIC_SOCK_PER_CONN is defined. If startup
detect fails, this value is resetted from global options. For the
moment, there is no code to activate the option : this will be in a
follow-up patch with the introduction of a new configuration option.

This change is part of quic-conn owned socket implementation.
It may be backported to 2.7 after a period of observation.
include/haproxy/global-t.h
src/proto_quic.c