]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Do not try to treat 0-RTT packets without started mux
authorFrédéric Lécaille <flecaille@haproxy.com>
Fri, 28 Jan 2022 20:41:06 +0000 (21:41 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Mon, 31 Jan 2022 15:40:23 +0000 (16:40 +0100)
We proceed the same was as for 1-RTT packets: we do not try to treat
them until the mux is started.

src/xprt_quic.c

index d7e680526570808194eaae0e5f16d5d5e3d53c49..6537f04973d1069d627f14e836ee1114daadde53 100644 (file)
@@ -3204,7 +3204,8 @@ static int qc_qel_may_rm_hp(struct quic_conn *qc, struct quic_enc_level *qel)
                return 0;
 
        /* check if the connection layer is ready before using app level */
-       if (tel == QUIC_TLS_ENC_LEVEL_APP && qc->mux_state != QC_MUX_READY)
+       if ((tel == QUIC_TLS_ENC_LEVEL_APP || tel == QUIC_TLS_ENC_LEVEL_EARLY_DATA) &&
+           qc->mux_state != QC_MUX_READY)
                return 0;
 
        return 1;