Skip to content
Myr

Adding notes about Request's timeout behavior.

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

authored by Maik Himstedt · committed by Maik · parent 13bc52f · Browse files · 3 files+7 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+7 added−2 removed

  • other:+7 added−2 removed

3 files+7 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 standard, 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+3 added
157 unmodified lines
158- Ulrich Petri (`@ulope <https://github.com/ulope>`_)159- Muhammad Yasoob Ullah Khalid <yasoob.khld@gmail.com> (`@yasoob <https://github.com/yasoob>`_)160- Paul van der Linden (`@pvanderlinden <https://github.com/pvanderlinden>`_)161- Colin Dickson (`@colindickson <https://github.com/colindickson>`_)162- Sabari Kumar Murugesan (`@neosab <https://github.com/neosab>`_)163- Smiley Barry (`@smiley <https://github.com/smiley>`_)164- Shagun Sodhani (`@shagunsodhani <https://github.com/shagunsodhani>`_)165- Robin Linderborg (`@vienno <https://github.com/vienno>`_)166- Brian Samek (`@bsamek <https://github.com/bsamek>`_)167- Dmitry Dygalo (`@Stranger6667 <https://github.com/Stranger6667>`_)168- Tomáš Heger (`@geckon <https://github.com/geckon>`_)169- piotrjurkiewicz170- Jesse Shapiro <jesse@jesseshapiro.net> (`@haikuginger <https://github.com/haikuginger>`_)171- Nate Prewitt <nate.prewitt@gmail.com> (`@nateprewitt <https://github.com/nateprewitt>`_)172- Maik Himstedt