Merge pull request #3679 from mlissner/patch-2

Amplifies the timeout warning in the docs.
This commit is contained in:
Cory Benfield
2016-11-14 17:58:13 +00:00
committed by GitHub
+3 -1
View File
@@ -484,7 +484,9 @@ Timeouts
--------
You can tell Requests to stop waiting for a response after a given number of
seconds with the ``timeout`` parameter::
seconds with the ``timeout`` parameter. Nearly all production code should use
this parameter in nearly all requests. Failure to do so can cause your program
to hang indefinitely::
>>> requests.get('http://github.com', timeout=0.001)
Traceback (most recent call last):