By default, the requests library does not add a timeout to HTTP requests. This can potentially cause the request to hang indefinitely.
Switch to a timeout of 60 seconds on requests. This timeout applies to both the connect() and read() calls.
connect()
read()
Ref: https://docs.python-requests.org/en/latest/user/advanced/#timeouts
rebased onto 33196366e33bf0c4e7d97bd1094c3048aa922f99
Pull-Request has been merged by jcline
By default, the requests library does not add a timeout to HTTP
requests. This can potentially cause the request to hang indefinitely.
Switch to a timeout of 60 seconds on requests. This timeout applies to
both the
connect()andread()calls.Ref: https://docs.python-requests.org/en/latest/user/advanced/#timeouts