increase establish_connection() timeout to let relay work

If all the direct hints resulted in timeouts (e.g. they were to bad IP
addresses where connections just hang), the relay connection would fail.
The establish_connection() function had the same TIMEOUT as the
direct-hint connector, so it would give up just before the relay
connection was initiated.
This commit is contained in:
Brian Warner 2015-03-12 15:52:11 -07:00
parent b5ff8a5d4a
commit 35630661a5

View File

@ -283,7 +283,7 @@ class Common:
self._start_outbound()
# we sit here until one of our inbound or outbound sockets succeeds
flag = self.winning.wait(TIMEOUT)
flag = self.winning.wait(2*TIMEOUT)
if not flag:
# timeout: self.winning_skt will not be set. ish. race.