Expand description
Code for estimating good values for circuit timeouts.
We need good circuit timeouts for two reasons: first, they help user experience. If user wait too long for their circuits, or if they use exceptionally slow circuits, then Tor will feel really slow. Second, these timeouts are actually a security property.
Re-exportsยง
Modulesยง
- estimator ๐
- Declarations for a
TimeoutEstimatortype that can change implementation. - pareto ๐
- Implement Torโs sort-of-Pareto estimator for circuit build timeouts.
- readonly ๐
- Implement a timeout estimator that just uses another processโs estimates.
Enumsยง
- Action
- A possible action for which we can try to estimate a timeout.
Traitsยง
- Timeout
Estimator ๐ - An object that calculates circuit timeout thresholds from the history of circuit build times.
Functionsยง
- mul_
duration_ ๐f64_ saturating - A safe variant of
Duration::mul_f64that never panics.