increase connection timeout to 60sec

This commit is contained in:
tophf 2020-11-19 18:10:23 +03:00
parent 420733b93a
commit 79cd6da824

View File

@ -369,7 +369,7 @@ function download(url, {
body,
responseType = 'text',
requiredStatusCode = 200,
timeout = 10e3, // connection timeout
timeout = 60e3, // connection timeout, USO is that bad
loadTimeout = 2 * 60e3, // data transfer timeout (counted from the first remote response)
headers = {
'Content-type': 'application/x-www-form-urlencoded',