mirror of
https://github.com/n0-computer/noq.git
synced 2026-09-19 01:36:08 +00:00
Respect lower bound for time loss detection threshold
This commit is contained in:
committed by
Dirkjan Ochtman
parent
f1682fd0a7
commit
b8fd5ffc4e
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user