Merge pull request #17 from Atheros1/master

Set socket timeout to 20 seconds to give Tor more time to connect
This commit is contained in:
Jonathan Warren 2012-12-18 22:24:13 -08:00
commit 69ff3bb904

View File

@ -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