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.
This commit is contained in:
Frédéric Lécaille 2022-02-15 12:00:55 +01:00 committed by Amaury Denoyelle
parent 0c80e69470
commit 53c7d8db56

View File

@ -3518,12 +3518,9 @@ 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++) { 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)) if (i == QUIC_TLS_ENC_LEVEL_APP && !quic_peer_validated_addr(qc))
continue; 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);
} }