Lower default connect timeout to 1s
This commit is contained in:
parent
e773211293
commit
94d4ee5b9b
|
@ -124,8 +124,8 @@ def call_api(
|
|||
data=None,
|
||||
files=None,
|
||||
):
|
||||
# Set the connect timeout to 3 seconds but extremely long (48 hour) data timeout
|
||||
timeout = (3.05, 172800)
|
||||
# Set the connect timeout to 1 seconds but extremely long (48 hour) data timeout
|
||||
timeout = (1.05, 172800)
|
||||
|
||||
# Craft the URI
|
||||
uri = "{}://{}{}{}".format(
|
||||
|
|
Loading…
Reference in New Issue