Skip to content
Myr

prototype for new urllib3 timeouts

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 2f39e0e · Browse files · 1 file+6 added−0 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+6 added−0 removed

  • other:+6 added−0 removed

1 file+6 added−0 removed

modified:requests/adapters.py+6 added
11 unmodified lines
1213from .models import Response14from .packages.urllib3.poolmanager import PoolManager, proxy_from_url15from .packages.urllib3.response import HTTPResponse16from .packages.urllib3.util import Timeout17from .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
277 unmodified lines
298 self.add_headers(request)299300 chunked = not (request.body is None or 'Content-Length' in request.headers)301302 if stream:303 timeout = Timeout(connect=timeout)304 else:305 timeout = Timeout(connect=timeout, read=timeout)306307 try:308 if not chunked:309 resp = conn.urlopen(310 method=request.method,
59 unmodified lines