]> 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, 6 Nov 2025 09:28:47 +0000 (10:28 +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 f0cd143fe93648a01e3178b6a79c27362298b844..d643d7ded38a73f955a2ee795231fc3ec8eadbfd 100644 (file)
@@ -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;
                }