From: Frederic Lecaille Date: Sat, 2 Aug 2025 08:28:38 +0000 (+0200) Subject: MINOR: quic-be: allow the preparation of 0-RTT packets X-Git-Tag: v3.3-dev13~39 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac1d3eba881522b9652ed603f88df06baa5124c8;p=thirdparty%2Fhaproxy.git 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). --- 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; }