]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: quic-be: Parse, store and reuse tokens provided by NEW_TOKEN
authorFrederic Lecaille <flecaille@haproxy.com>
Mon, 11 Aug 2025 14:53:29 +0000 (16:53 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 13 Nov 2025 13:04:31 +0000 (14:04 +0100)
commit80070fe51c47c40b829cbb2e5d7bb7797919b2d7
tree602319c269048aeeea9af05b23753a11dc9fe773
parent8f23d4d2874212c564fb6e34ae5dbcd8f108ac90
MEDIUM: quic-be: Parse, store and reuse tokens provided by NEW_TOKEN

Add a per thread ist struct to srv_per_thread struct to store the QUIC token to
be reused for subsequent sessions.

Parse at packet level (from qc_parse_ptk_frms()) these tokens and store
them calling qc_try_store_new_token() newly implemented function. This is
this new function which does its best (may fail) to update the tokens.

Modify qc_do_build_pkt() to resend these tokens calling quic_enc_token()
implemented by this patch.
include/haproxy/server-t.h
src/quic_rx.c
src/quic_tx.c