]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
MINOR: quic: Stop looking for packet loss asap
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 21 Jul 2022 12:24:41 +0000 (14:24 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 29 Jul 2022 15:32:05 +0000 (17:32 +0200)
As the TX packets are ordered by their packet number and always sent
in the same order. their TX timestamps are inspected from the older to
the newer values when we look for the packet loss. So we can stop
this search as soon as we found the first packet which has not been lost.

Must be backported to 2.6

src/quic_loss.c

index 7cce3a4788770f3911d2ac45a68ad86499f5a47e..2ee3efb8045c5a0210c4d64b32676525d5958240 100644 (file)
@@ -184,6 +184,7 @@ void qc_packet_loss_lookup(struct quic_pktns *pktns, struct quic_conn *qc,
                                pktns->tx.loss_time = tick_first(pktns->tx.loss_time, loss_time_limit);
                        else
                                pktns->tx.loss_time = loss_time_limit;
+                       break;
                }
        }