]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic-be: modify ssl_sock_srv_try_reuse_sess() to reuse backend sessions ...
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 31 Jul 2025 16:19:24 +0000 (18:19 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 13 Nov 2025 13:04:31 +0000 (14:04 +0100)
commit6e14365a5bd78bd02360218a3ecd44d83292cb50
tree959629030959b8e9ad460176a30d03263694c4d7
parent5309dfb56b817420bfbbcbc89a3ec47fe1b27a9a
MEDIUM: quic-be: modify ssl_sock_srv_try_reuse_sess() to reuse backend sessions (0-RTT)

This function is called for both TCP and QUIC connections to reuse SSL sessions
saved by ssl_sess_new_srv_cb() callback called upon new SSL session creation.

In addition to this, a QUIC SSL session must reuse the ALPN and some specific QUIC
transport parameters. This is what is added by this patch for QUIC 0-RTT sessions.

Note that for now on, ssl_sock_srv_try_reuse_sess() may fail for QUIC connections
if it did not managed to reuse the ALPN. The caller must be informed of such an
issue. It must not enable 0-RTT for the current session in this case. This is
impossible without ALPN which is required to start a mux.

ssl_sock_srv_try_reuse_sess() is modified to always succeeds for TCP connections.
include/haproxy/ssl_sock.h
src/ssl_sock.c