]> 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>
Mon, 4 Aug 2025 17:30:46 +0000 (19:30 +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 c04884ee77561510e763324d067dd8a115583302..f74703438ef8903196ebd65c6bd8dee55346c31d 100644 (file)
@@ -607,7 +607,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 (objt_listener(qc->target) && qel == qc->eel) {
                        /* Next encryption level */
                        continue;
                }