[tbb-commits] [tor-launcher/master] Bug 20890: Increase control port connection timeout

gk at torproject.org gk at torproject.org
Thu May 17 06:25:47 UTC 2018


commit 9aa5fd46cb33528150400a9b94c14ad5e9b7d4ee
Author: Kathy Brade <brade at pearlcrescent.com>
Date:   Wed May 16 14:17:16 2018 -0400

    Bug 20890: Increase control port connection timeout
    
    On slow computers, it can take longer than 30 seconds for Tor Launcher
    to connect to the tor control port. Increase the timeout to 5 minutes.
---
 src/components/tl-process.js | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/components/tl-process.js b/src/components/tl-process.js
index 53c9919..2bf5a4c 100644
--- a/src/components/tl-process.js
+++ b/src/components/tl-process.js
@@ -38,8 +38,8 @@ TorProcessService.prototype =
   kWizardProgressPageID: "progress",
 
   kInitialControlConnDelayMS: 25,
-  kMaxControlConnRetryMS: 500,
-  kControlConnTimeoutMS: 30000, // Wait at most 30 seconds for tor to start.
+  kMaxControlConnRetryMS: 2000,     // Retry at least every 2 seconds.
+  kControlConnTimeoutMS: 5*60*1000, // Wait at most 5 minutes for tor to start.
 
   kStatusUnknown: 0, // Tor process status.
   kStatusStarting: 1,



More information about the tbb-commits mailing list