]> git.ipfire.org Git - thirdparty/haproxy.git/commitdiff
BUG/MIONR: quic: fix fc_lost
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Aug 2024 09:29:58 +0000 (11:29 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 1 Aug 2024 09:35:27 +0000 (11:35 +0200)
Control layer callback get_info has recently been implemented for QUIC.
However, fc_lost always returned 0. This is because quic_get_info() does
not use the correct input argument value to identify lost value.

This does not need to be backported.

src/proto_quic.c

index f9f4930399e71757a5e7498d4059d937fd5d20d3..b77bcaeafb56497a4f137b05b00ab6b40b357df4 100644 (file)
@@ -704,7 +704,7 @@ static int quic_get_info(struct connection *conn, long long int *info, int info_
        switch (info_num) {
        case 0:  *info = qc->path->loss.srtt * 1000;      break;
        case 1:  *info = qc->path->loss.rtt_var * 1000;   break;
-       case 3:  *info = qc->path->loss.nb_lost_pkt;      break;
+       case 4:  *info = qc->path->loss.nb_lost_pkt;      break;
        case 7:  *info = qc->path->loss.nb_reordered_pkt; break;
        default: return 0;
        }