]> 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>
Mon, 4 Aug 2025 16:48:09 +0000 (18:48 +0200)
commite59be9473bc73253bee7df5bc44cf59fab29037c
tree43c9e24272d00d0c42122ad0d4c4e3c0b937c140
parent2f2c8c0e3e0651109729d558c7a411dd779cdd78
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