From ed674e5ffe3ee53faea443ec5f97baa6ec74bcbc Mon Sep 17 00:00:00 2001 From: Brian Warner Date: Mon, 16 Jan 2017 17:56:16 -0500 Subject: [PATCH] transit: increase connection timeout from 15s to 60s I haven't seen any timeouts yet, but I'm thinking ahead to .onion connections that might take longer than 15 seconds to establish. --- src/wormhole/transit.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wormhole/transit.py b/src/wormhole/transit.py index baae431..0110c40 100644 --- a/src/wormhole/transit.py +++ b/src/wormhole/transit.py @@ -138,7 +138,7 @@ def parse_hint_argv(hint, stderr=sys.stderr): return None return DirectTCPV1Hint(hint_host, hint_port, priority) -TIMEOUT=15 +TIMEOUT = 60 # seconds @implementer(interfaces.IProducer, interfaces.IConsumer) class Connection(protocol.Protocol, policies.TimeoutMixin):