]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: Save the backend parameters (0-RTT)
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 31 Jul 2025 15:56:02 +0000 (17:56 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Mon, 4 Aug 2025 17:30:46 +0000 (19:30 +0200)
commit53294b283251565c0ab06a8008a9248b894f1c0e
treea6160a9c3a348d961ef35a945c7646990e6d0466
parent61f7cf9e945325bd41fed27192f4ba51fc7c5607
MINOR: quic-be: Save the backend parameters (0-RTT)

For both TCP and QUIC connections, this is ssl_sess_new_srv_cb() callback which
is called when a new SSL session. Its role is to save the session to be reused
during the SSL session resumption and 0-RTT session.

This patch modifies this callback to same the QUIC parameters to be reused
for the next 0-RTT sessions (or SSL session resumption).

A new ->alpn member is added to the reused_sess objects allocated by thread
and server alongsise ->tps new quic_early_transport_params struct used to
save the QUIC transport parameters to be reused for 0-RTT sessions.
include/haproxy/server-t.h
src/ssl_sock.c