From ab31fb69aae4644a1304f5bfb43842c0f1afffb5 Mon Sep 17 00:00:00 2001 From: Jonathan Warren Date: Wed, 19 Dec 2012 01:22:04 -0500 Subject: [PATCH] set socket timeout to 20 seconds to give Tor more time to connect --- bitmessagemain.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bitmessagemain.py b/bitmessagemain.py index 03613826..bba2a6b5 100644 --- a/bitmessagemain.py +++ b/bitmessagemain.py @@ -80,7 +80,7 @@ class outgoingSynSender(QThread): self.alreadyAttemptedConnectionsList.append(HOST) PORT, timeNodeLastSeen = knownNodes[self.streamNumber][HOST] sock = socks.socksocket(socket.AF_INET, socket.SOCK_STREAM) - sock.settimeout(6) + sock.settimeout(20) if config.get('bitmessagesettings', 'socksproxytype') == 'none': printLock.acquire() print 'Trying an outgoing connection to', HOST, ':', PORT