Skip to content
Myr

Merge pull request #3679 from mlissner/patch-2

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

Amplifies the timeout warning in the docs.

authored by Cory Benfield · committed by GitHub · parents 33bd38b, cfb7fd8 · Browse files · 1 file+3 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+3 added−1 removed

  • other:+3 added−1 removed

1 file+3 added−1 removed

modified:docs/user/quickstart.rst+3 added-1 removed
482 unmodified lines
483Timeouts484--------485486You can tell Requests to stop waiting for a response after a given number of487seconds with the ``timeout`` parameter::487seconds with the ``timeout`` parameter. Nearly all production code should use 488this parameter in nearly all requests. Failure to do so can cause your program489to hang indefinitely::490491 >>> requests.get('http://github.com', timeout=0.001)492 Traceback (most recent call last):493 File "<stdin>", line 1, in <module>
34 unmodified lines