Skip to content

Commit

Permalink
BUG/MIONR: quic: fix fc_lost
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
a-denoyelle committed Aug 1, 2024
1 parent 522c3be commit a7a2db4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/proto_quic.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit a7a2db4

Please sign in to comment.