From d067088695933a5d7e16d6b86bf433a5741f5ac7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Thu, 19 Aug 2021 07:53:27 +0200 Subject: [PATCH] MINOR: quic: Coalesce Application level packets with Handshake packets. This simple enable use to coalesce Application level packet with Handshake ones at the end of the handshake. This is highly useful if we do want to send a short Handshake packet followed by Application level ones. --- src/xprt_quic.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index 96b6a4769..f58715cb5 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -2101,7 +2101,7 @@ static int qc_prep_hdshk_pkts(struct qring *qr, struct ssl_sock_ctx *ctx) /* Special case for Initial packets: when they have all * been sent, select the next level. */ - if (tel == QUIC_TLS_ENC_LEVEL_INITIAL && + if ((tel == QUIC_TLS_ENC_LEVEL_INITIAL || tel == QUIC_TLS_ENC_LEVEL_HANDSHAKE) && (MT_LIST_ISEMPTY(&qel->pktns->tx.frms) || qc->els[next_tel].pktns->tx.in_flight)) { tel = next_tel; qel = &qc->els[tel];