[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

[tor-commits] [chutney/master] bootstrap: Increase InitialVotingInterval to improve reliability



commit 36fc77e3a1047714210b7d3040977352c184339f
Author: teor <teor@xxxxxxxxxxxxxx>
Date:   Fri Sep 7 14:44:14 2018 +1000

    bootstrap: Increase InitialVotingInterval to improve reliability
    
    Tor 0.3.4 changed callbacks so they can happen at the end of every
    event loop, rather than once per second. Also, when multiple
    dirvote_act() actions are due, one action is processed per callback,
    rather than all actions being processed in the same callback.
    
    Fixes 27300.
---
 torrc_templates/authority.i | 11 ++++++++---
 1 file changed, 8 insertions(+), 3 deletions(-)

diff --git a/torrc_templates/authority.i b/torrc_templates/authority.i
index 5519500..1bf2561 100644
--- a/torrc_templates/authority.i
+++ b/torrc_templates/authority.i
@@ -11,11 +11,16 @@ ContactInfo auth${nodenum}@test.test
 #    5, 6, 8, 9
 # They both need to evenly divide 24 hours.
 
-# Testing Vote + Testing Dist must be less than Testing Interval
-TestingV3AuthInitialVotingInterval 5
+# Initial Vote + Initial Dist must be less than Initial Interval
+#
+# Mixed 0.3.3 and 0.3.4 networks are unstable, due to timing changes.
+# When all 0.3.3 and earlier versions are obsolete, we may be able to revert to
+# TestingV3AuthInitialVotingInterval 5
+TestingV3AuthInitialVotingInterval 10
 TestingV3AuthInitialVoteDelay 2
 TestingV3AuthInitialDistDelay 2
-# Vote + Dist must be less than Interval/2
+# Vote + Dist must be less than Interval/2, because when there's no consensus,
+# tor uses Interval/2 as the voting interval
 V3AuthVotingInterval 10
 V3AuthVoteDelay 2
 V3AuthDistDelay 2

_______________________________________________
tor-commits mailing list
tor-commits@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-commits