]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: quic-be: helper functions to save/restore transport params (0-RTT)
authorFrederic Lecaille <flecaille@haproxy.com>
Thu, 31 Jul 2025 13:24:20 +0000 (15:24 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 13 Nov 2025 13:04:31 +0000 (14:04 +0100)
commit33564ca54c2853553d191351a8a80931cec835ba
tree6cc8555508152da6a5593e3ba56d64a5efdba8b2
parent80070fe51c47c40b829cbb2e5d7bb7797919b2d7
MINOR: quic-be: helper functions to save/restore transport params (0-RTT)

Define quic_early_transport_params new struct for QUIC transport parameters
in relation with 0-RTT. This parameters must be saved during a first session to
be reused for 0-RTT next sessions.

qc_early_transport_params_cpy() copies the 0-RTT transport parameters to be
saved during a first connection to a backend. The copy is made from
a quic_transport_params struct to a quic_ealy_transport_params struct.

On the contrary, qc_early_transport_params_reuse() copies the transport parameters
to be reused for a 0-RTT session from a previous one. The copy is made
from a quic_early_transport_params strcut to a quic_transport_params struct.

Also add QUIC_EV_EARLY_TRANSP_PARAMS trace event to dump such 0-RTT
transport parameters from traces.
include/haproxy/quic_tp-t.h
include/haproxy/quic_tp.h
include/haproxy/quic_trace-t.h
src/quic_tp.c
src/quic_trace.c