Skip to content
Myr

Merge pull request #2661 from Lukasa/timeouts_are_tricky

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Only pass useful timeouts to _get_conn

authored by Ian Cordasco · committed by Ian Cordasco · parents e4d59be, e9a1e35 · Browse files · 1 file+2 added−1 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Diff stats

1 file+2 added−1 removed

  • other:+2 added−1 removed

1 file+2 added−1 removed

modified:requests/adapters.py+2 added-1 removed
33 unmodified lines
3435DEFAULT_POOLBLOCK = False36DEFAULT_POOLSIZE = 1037DEFAULT_RETRIES = 038DEFAULT_POOL_TIMEOUT = None394041class BaseAdapter(object):42 """The Base Transport Adapter"""
332 unmodified lines
375 else:376 if hasattr(conn, 'proxy_pool'):377 conn = conn.proxy_pool378378 low_conn = conn._get_conn(timeout=timeout)379 low_conn = conn._get_conn(timeout=DEFAULT_POOL_TIMEOUT)380381 try:382 low_conn.putrequest(request.method,383 url,
52 unmodified lines