]> 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>
Tue, 4 Nov 2025 10:09:36 +0000 (11:09 +0100)
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 22caf5b2038f31a69f3413013cf977b8d8e3e9f0..c3c81a9c32c563643b5382c5e782aa6325dfc88d 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;
                }