]> 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, 13 Nov 2025 13:04:31 +0000 (14:04 +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 421dba86c66a1b741ad334f5a2a871277013b915..2c1eb87c6938d93182acc2abe5d992c4c4d8afd3 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;
                }