summaryrefslogtreecommitdiff
path: root/src/or/config.c
diff options
context:
space:
mode:
authorteor <teor2345@gmail.com>2017-08-29 14:04:24 +1000
committerNick Mathewson <nickm@torproject.org>2017-09-12 10:38:25 -0400
commit97249c4f5e389141cb4ff3562a3813bd09bff6ad (patch)
treefea0d8ade7b106af53d5a389b56ce9867b7083da /src/or/config.c
parent435952538da2d99e7ce46f510ac3f7dc3f910fca (diff)
downloadtor-97249c4f5e389141cb4ff3562a3813bd09bff6ad.tar.gz
tor-97249c4f5e389141cb4ff3562a3813bd09bff6ad.zip
Make bridge clients download bridge descriptors immediately
The download schedule tells Tor to wait 15 minutes before downloading bridge descriptors. But 17750 made Tor ignore that and start immediately. Since we fixed 17750, Tor waits 15 minutes for bridge client bootstrap, like the schedule says. This fixes the download schedule to start immediately, and to try each bridge 3 times in the first 30 seconds. This should make bridge bootstraps more reliable. Fixes 23347.
Diffstat (limited to 'src/or/config.c')
-rw-r--r--src/or/config.c9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/or/config.c b/src/or/config.c
index 30853724e4..54df6c3e58 100644
--- a/src/or/config.c
+++ b/src/or/config.c
@@ -586,7 +586,10 @@ static config_var_t option_vars_[] = {
* blackholed. Clients will try 3 directories simultaneously.
* (Relays never use simultaneous connections.) */
V(ClientBootstrapConsensusMaxInProgressTries, UINT, "3"),
- V(TestingBridgeDownloadSchedule, CSV_INTERVAL, "1200, 900, 900, 3600"),
+ /* The bridge code relies on the third item in this schedule being slow
+ * (~ 1 consensus interval) */
+ V(TestingBridgeDownloadSchedule, CSV_INTERVAL,
+ "0, 8, 3600, 10800, 25200, 54000, 111600, 262800"),
V(TestingClientMaxIntervalWithoutRequest, INTERVAL, "10 minutes"),
V(TestingDirConnectionMaxStall, INTERVAL, "5 minutes"),
V(TestingConsensusMaxDownloadTries, UINT, "8"),
@@ -648,7 +651,9 @@ static const config_var_t testing_tor_network_defaults[] = {
"15, 20, 30, 60"),
V(TestingClientConsensusDownloadSchedule, CSV_INTERVAL, "0, 0, 5, 10, "
"15, 20, 30, 60"),
- V(TestingBridgeDownloadSchedule, CSV_INTERVAL, "60, 30, 30, 60"),
+ /* The bridge code relies on the third item in this schedule being slow
+ * (~ 1 consensus interval) */
+ V(TestingBridgeDownloadSchedule, CSV_INTERVAL, "0, 5, 10, 30, 60"),
V(TestingClientMaxIntervalWithoutRequest, INTERVAL, "5 seconds"),
V(TestingDirConnectionMaxStall, INTERVAL, "30 seconds"),
V(TestingConsensusMaxDownloadTries, UINT, "80"),