From 53c7d8db562e87f8fc60ef6e52e18188bfdc92ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20L=C3=A9caille?= Date: Tue, 15 Feb 2022 12:00:55 +0100 Subject: [PATCH] MINOR: quic: Do not retransmit too much packets. We retranmist at most one datagram and possibly one more with only PING frame as ack-eliciting frame. --- src/xprt_quic.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/xprt_quic.c b/src/xprt_quic.c index bec37acaa..a50666727 100644 --- a/src/xprt_quic.c +++ b/src/xprt_quic.c @@ -3518,13 +3518,10 @@ static struct task *process_timer(struct task *task, void *ctx, unsigned int sta } for (i = QUIC_TLS_ENC_LEVEL_INITIAL; i < QUIC_TLS_ENC_LEVEL_MAX; i++) { - int j; - if (i == QUIC_TLS_ENC_LEVEL_APP && !quic_peer_validated_addr(qc)) continue; - for (j = 0; j < qc->els[i].pktns->tx.pto_probe; j++) - qc_prep_fast_retrans(&qc->els[i], qc); + qc_prep_fast_retrans(&qc->els[i], qc); } tasklet_wakeup(conn_ctx->wait_event.tasklet);