pto property
Duration
get
pto
The Probe Timeout (PTO) duration.
Implementation
Duration get pto {
// PTO = smoothed_rtt + max(4 * rttvar, kGranularity) + max_ack_delay
// We'll simplify kGranularity and max_ack_delay for now.
final ptoMillis = _smoothedRtt.inMilliseconds + (4 * _rttVar.inMilliseconds);
return Duration(milliseconds: ptoMillis.clamp(200, 5000));
}