From ac1d3eba881522b9652ed603f88df06baa5124c8 Mon Sep 17 00:00:00 2001 From: Frederic Lecaille Date: Sat, 2 Aug 2025 10:28:38 +0200 Subject: [PATCH] MINOR: quic-be: allow the preparation of 0-RTT packets A QUIC server never sends 0-RTT packets contrary to the client. This very simple modification allow the the preparation of 0-RTT packets with early data as encryption level (->eel). --- src/quic_tx.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/quic_tx.c b/src/quic_tx.c index 421dba86c..2c1eb87c6 100644 --- a/src/quic_tx.c +++ b/src/quic_tx.c @@ -626,7 +626,7 @@ static int qc_prep_pkts(struct quic_conn *qc, struct buffer *buf, struct quic_enc_level *next_qel; int probe, must_ack; - if (qel == qc->eel) { + if (!qc_is_back(qc) && qel == qc->eel) { /* Next encryption level */ continue; }