From: Frédéric Lécaille Date: Fri, 28 Jan 2022 20:41:06 +0000 (+0100) Subject: MINOR: quic: Do not try to treat 0-RTT packets without started mux X-Git-Tag: v2.6-dev1~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=298931d17722a8dd6eb522e7c99ceb741ceabe8c;p=thirdparty%2Fhaproxy.git MINOR: quic: Do not try to treat 0-RTT packets without started mux We proceed the same was as for 1-RTT packets: we do not try to treat them until the mux is started. --- diff --git a/src/xprt_quic.c b/src/xprt_quic.c index d7e6805265..6537f04973 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -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;