Skip to content
Myr

TimeoutSauce!

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

authored by Kenneth Reitz · committed by Kenneth Reitz · parent 62925fb · Browse files · 1 file+3 added−3 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+3 added−3 removed

  • other:+3 added−3 removed

1 file+3 added−3 removed

modified:requests/adapters.py+3 added-3 removed
11 unmodified lines
1213from .models import Response14from .packages.urllib3.poolmanager import PoolManager, proxy_from_url15from .packages.urllib3.response import HTTPResponse16from .packages.urllib3.util import Timeout16from .packages.urllib3.util import Timeout as TimeoutSauce17from .compat import urlparse, basestring, urldefrag, unquote18from .utils import (DEFAULT_CA_BUNDLE_PATH, get_encoding_from_headers,19 except_on_missing_scheme, get_auth_from_url)20from .structures import CaseInsensitiveDict
278 unmodified lines
299300 chunked = not (request.body is None or 'Content-Length' in request.headers)301302 if stream:303 timeout = Timeout(connect=timeout)303 timeout = TimeoutSauce(connect=timeout)304 else:305 timeout = Timeout(connect=timeout, read=timeout)305 timeout = TimeoutSauce(connect=timeout, read=timeout)306307 try:308 if not chunked:309 resp = conn.urlopen(
60 unmodified lines