We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ff58f71 + 74d2cc5 commit 7d5fef2Copy full SHA for 7d5fef2
quinn-proto/src/connection/mod.rs
@@ -536,9 +536,12 @@ impl Connection {
536
};
537
538
// Check whether we need to send an ACK_FREQUENCY frame
539
- // TODO(@divma): decide if we take the min/max/avg something else over all paths because
540
- // this looks wrong for the multipath case
541
- let rtt = self.path_data(path_id).rtt.get();
+ let rtt = self
+ .paths
+ .values()
542
+ .map(|p| p.path.rtt.get())
543
+ .min()
544
+ .expect("one path exists");
545
if let Some(config) = &self.config.ack_frequency_config {
546
self.spaces[SpaceId::Data].pending.ack_frequency = self
547
.ack_frequency
0 commit comments