From cf98616491392dac55541987c545f8e894263718 Mon Sep 17 00:00:00 2001 From: Mike Perry Date: Tue, 26 Mar 2013 19:40:08 -0700 Subject: 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 file 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 -- cgit v1.2.3-54-g00ecf