Skip to content

Commit

Permalink
noop, comment util.HTTP_TIMEOUT units is seconds
Browse files Browse the repository at this point in the history
  • Loading branch information
snarfed committed Aug 15, 2023
1 parent 63be8a7 commit 4abf3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion util.py
Expand Up @@ -119,7 +119,7 @@
ISO8601_DURATION_RE = re.compile(
r'^ *P(?!$)(\d+Y)?(\d+M)?(\d+W)?(\d+D)?(T(?=\d)(\d+H)?(\d+M)?(\d+S)?)? *$')

HTTP_TIMEOUT = 15
HTTP_TIMEOUT = 15 # seconds
"""Default HTTP request timeout, used in :func:`requests_get` etc."""
socket.setdefaulttimeout(HTTP_TIMEOUT)
# monkey-patch socket.getdefaulttimeout() because it often gets reset, e.g. by
Expand Down

0 comments on commit 4abf3b0

Please sign in to comment.