Respect lower bound for time loss detection threshold

This commit is contained in:
Benjamin Saunders
2019-07-06 18:35:49 -07:00
committed by Dirkjan Ochtman
parent f1682fd0a7
commit b8fd5ffc4e
+1
View File
@@ -601,6 +601,7 @@ where
.rtt
.smoothed
.map_or(self.rtt.latest, |x| cmp::max(x, self.rtt.latest));
let rtt = cmp::max(rtt, TIMER_GRANULARITY);
let loss_delay = rtt + ((rtt * u32::from(self.config.time_threshold)) / 65536);
// Packets sent before this time are deemed lost.