Skip to content
Myr

Merge pull request #3520 from Brausepaul/master

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

Adding notes about Requests' timeout behavior

authored by Kenneth Reitz · committed by GitHub · parents 5327568, b5fac31 · Browse files · 3 files+5 added−2 removed
This commit

State

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

Diff stats

3 files+5 added−2 removed

  • other:+5 added−2 removed

3 files+5 added−2 removed

modified:docs/user/advanced.rst+2 added-1 removed
908 unmodified lines
909Timeouts910--------911912Most requests to external servers should have a timeout attached, in case the913server is not responding in a timely manner. Without a timeout, your code may913server is not responding in a timely manner. By default, requests do not time914out unless a timeout value is set explicitly. Without a timeout, your code may915hang for minutes or more.916917The **connect** timeout is the number of seconds Requests will wait for your918client to establish a connection to a remote machine (corresponding to the
28 unmodified lines
modified:docs/user/quickstart.rst+2 added-1 removed
495 unmodified lines
496497 ``timeout`` is not a time limit on the entire response download;498 rather, an exception is raised if the server has not issued a499 response for ``timeout`` seconds (more precisely, if no bytes have been500 received on the underlying socket for ``timeout`` seconds).500 received on the underlying socket for ``timeout`` seconds). If no timeout is specified explicitly, requests do501 not time out.502503504Errors and Exceptions505---------------------
20 unmodified lines
modified:AUTHORS.rst+1 added
165 unmodified lines
166- Dmitry Dygalo (`@Stranger6667 <https://github.com/Stranger6667>`_)167- piotrjurkiewicz168- Jesse Shapiro <jesse@jesseshapiro.net> (`@haikuginger <https://github.com/haikuginger>`_)169- Nate Prewitt <nate.prewitt@gmail.com> (`@nateprewitt <https://github.com/nateprewitt>`_)170- Maik Himstedt