]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Do not retransmit too much packets.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 15 Feb 2022 11:00:55 +0000 (12:00 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Tue, 15 Feb 2022 16:33:21 +0000 (17:33 +0100)
We retranmist at most one datagram and possibly one more with only PING frame
as ack-eliciting frame.

src/xprt_quic.c

index bec37acaae0730245f1be36d5f50182ef1c4cf2d..a50666727d3401699f0325478799ff056f266f52 100644 (file)
@@ -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);