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.
This commit is contained in:
Brian Warner 2017-01-16 17:56:16 -05:00
parent 862820679c
commit ed674e5ffe

View File

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