We have a few p.recovery.pto * 3 calculations scattered throughout the codebase. These seem to be used for calculating timeouts. It would be nice to have this logic extracted into its own function.
Examples:
|
let path_pto = match self.paths.get_active() { |
|
Ok(p) => p.recovery.pto(), |
|
Err(_) => Duration::ZERO, |
|
}; |
|
timer: now + (recv_path.recovery.pto() * 3), |
|
let pto = path.recovery.pto(); |
We have a few
p.recovery.pto * 3calculations scattered throughout the codebase. These seem to be used for calculating timeouts. It would be nice to have this logic extracted into its own function.Examples:
quiche/quiche/src/lib.rs
Lines 8452 to 8455 in 83f919f
quiche/quiche/src/lib.rs
Line 3233 in 83f919f
quiche/quiche/src/lib.rs
Line 4706 in 83f919f