Increased JSON request timeout

Some JSON requests were timing out with slow internet speeds.

Request timeout increased: 20s -> 45s

Affects issues:
- Close #1185
This commit is contained in:
Rsl1122 2019-10-19 12:52:21 +03:00
parent c46eac3121
commit d07c83e111
1 changed files with 2 additions and 2 deletions

View File

@ -26,9 +26,9 @@ function jsonRequest(address, callback) {
}
}
};
xhttp.timeout = 20000;
xhttp.timeout = 45000;
xhttp.ontimeout = function () {
callback(null, "Timed out after 20 seconds. (" + address + ")")
callback(null, "Timed out after 45 seconds. (" + address + ")")
};
xhttp.open("GET", address, true);
xhttp.send();