]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: xprt_quic: remove dead callbacks prepare_srv/destroy_srv
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 28 Jul 2026 17:08:39 +0000 (19:08 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 4 Aug 2026 07:42:25 +0000 (09:42 +0200)
commit26545d98bf0aa9d93071c0ac58c4f0e8c42ca693
treefaccc00fd30668ca4156029d57b560363436db7b
parent9d66cd53c5a5c0782656bbefd6d4d4afb997cd27
CLEANUP: xprt_quic: remove dead callbacks prepare_srv/destroy_srv

QUIC xprt defines prepare_srv callback. The main objective of this
callback is to setup server XPRT to QUIC.

This should be called once the server is fully configured, with related
code blocks in proxy_finalize() and cli_parse_add_server(). However,
this is in fact dead code as prepare_srv is in fact called through
XPRT_SSL. This is still functional though because SSL and QUIC share the
same prepare_srv, so this issue is not visible. This is the same
situation for destroy_srv callback.

This patch removes the dead code to ensure there is no ambiguity here.
There is still a design issue which should be fixed later as it's not
expected for QUIC code to rely on XPRT_SSL layer.
src/proxy.c
src/server.c
src/xprt_quic.c