Skip to content

Commit

Permalink
Bump create_connection timeout default to 30s
Browse files Browse the repository at this point in the history
Tor can be slow...
  • Loading branch information
Neil Booth committed Mar 13, 2018
1 parent dacdd1a commit 568e5c4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion aiorpcx/socks.py
Original file line number Diff line number Diff line change
Expand Up @@ -347,7 +347,7 @@ async def auto_detect_host(cls, host, ports, auth, *, loop=None,
return None

async def create_connection(self, protocol_factory, host, port, *,
resolve=False, timeout=5.0, loop=None,
resolve=False, timeout=30.0, loop=None,
ssl=None, family=0, proto=0, flags=0):
'''Set up a connection to (host, port) through the proxy.
Expand Down
2 changes: 1 addition & 1 deletion docs/socks.rst
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ of its auto-detection class methods is likely more useful.

.. method:: create_connection(protocol_factory, host, port, \*, \
resolve=False, loop=None, ssl=None, family=0, proto=0, \
flags=0, timeout=5.0)
flags=0, timeout=30.0)

Connect to (host, port) through the proxy in the background.
When successful, the coroutine returns a ``(transport,
Expand Down

0 comments on commit 568e5c4

Please sign in to comment.