]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: modify ssl_sock_srv_try_reuse_sess() to reuse backend session (0...
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 31 Jul 2025 16:19:24 +0000 (18:19 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 11 Sep 2025 16:23:33 +0000 (18:23 +0200)
commite38dd875aba1613ce98026faf36b4eb16d5a5c59
tree30de3da2ba79bb376d349ea2dadfa3513964660b
parent7f5cf938a5252f3eb9ff4e3cc823fc0024c33b21
MINOR: quic-be: modify ssl_sock_srv_try_reuse_sess() to reuse backend session (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 reused the ALPN and some 0-RTT QUIC
transport parameters. This is what is added by this patch for QUIC 0-RTT SSL sessions.

Note that for now on, ssl_sock_srv_try_reuse_sess() may fail for QUIC connection
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() always succeeds for TCP connections.
include/haproxy/ssl_sock.h
src/ssl_sock.c