]> git.ipfire.org Git - thirdparty/haproxy.git/commit
OPTIM: quic: adjust automatic ALPN setting for QUIC servers
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 31 Oct 2025 09:12:55 +0000 (10:12 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 31 Oct 2025 10:32:20 +0000 (11:32 +0100)
commit73b5d331cc1535da70e4ae3a6bc6859e60684d58
treecacdcde745c09476e2f7dec4641c764cf47ecef7
parent14a6468df576bf1b5cc345976ab1f4cc0683e008
OPTIM: quic: adjust automatic ALPN setting for QUIC servers

If a QUIC server is declared without ALPN, "h3" value is automatically
set during _srv_parse_finalize().

This patch adjusts this operation. Instead of relying on
ssl_sock_parse_alpn(), a plain strdup() is used. This is considered more
efficient as the ALPN string is constant in this case. This method is
already used for listeners on the frontend side.
doc/configuration.txt
src/server.c