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, body,
responseType = 'text', responseType = 'text',
requiredStatusCode = 200, 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) loadTimeout = 2 * 60e3, // data transfer timeout (counted from the first remote response)
headers = { headers = {
'Content-type': 'application/x-www-form-urlencoded', 'Content-type': 'application/x-www-form-urlencoded',