]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic-be: allow the preparation of 0-RTT packets
authorFrederic Lecaille <flecaille@haproxy.com>
Sat, 2 Aug 2025 08:28:38 +0000 (10:28 +0200)
committerFrederic Lecaille <flecaille@haproxy.com>
Thu, 11 Sep 2025 16:23:33 +0000 (18:23 +0200)
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

index a9961fa07a9a9c9f367a94da4ef867428d07cc48..431e77adef89666cb5699223be2dbabba13ce59d 100644 (file)
@@ -627,7 +627,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;
                }