mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-02 14:37:45 +01:00
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:
parent
c46eac3121
commit
d07c83e111
@ -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();
|
||||
|
Loading…
Reference in New Issue
Block a user