From 35630661a5e300562c4cd35eb15b4b20bec74b69 Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Thu, 12 Mar 2015 15:52:11 -0700 Subject: [PATCH] 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. --- src/wormhole/blocking/transit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/blocking/transit.py b/src/wormhole/blocking/transit.py index a8329ca..46b237e 100644 --- a/src/wormhole/blocking/transit.py +++ b/src/wormhole/blocking/transit.py @@ -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.