[tor-commits] [torspec/master] Improve CBT network liveness section to match code.
nickm at torproject.org
nickm at torproject.org
Thu Apr 11 05:34:30 UTC 2013
commit cf98616491392dac55541987c545f8e894263718
Author: Mike Perry <mikeperry-git at torproject.org>
Date: Tue Mar 26 19:40:08 2013 -0700
Improve CBT network liveness section to match code.
We simplified this code a while back and forgot to update the spec.
---
path-spec.txt | 12 ++++--------
1 files changed, 4 insertions(+), 8 deletions(-)
diff --git a/path-spec.txt b/path-spec.txt
index 7d19889..d04fc8b 100644
--- a/path-spec.txt
+++ b/path-spec.txt
@@ -395,14 +395,10 @@ of their choices.
We attempt to detect both network connectivity loss and drastic
changes in the timeout characteristics.
- We assume that we've had network connectivity loss if 3 circuits
- timeout and we've received no cells or TLS handshakes since those
- circuits began. We then temporarily set the timeout to 60 seconds
- and stop counting timeouts.
-
- If 3 more circuits timeout and the network still has not been
- live within this new 60 second timeout window, we then discard
- the previous timeouts during this period from our history.
+ We assume that we've had network connectivity loss if a circuit
+ times out and we've received no cells or TLS handshakes since that
+ circuit began. We then temporarily stop counting timeouts until
+ network activity resumes.
To detect changing network conditions, we keep a history of
the timeout or non-timeout status of the past 20 circuits that
More information about the tor-commits
mailing list