mirror of
https://github.com/plan-player-analytics/Plan.git
synced 2025-01-04 23:48:42 +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 () {
|
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.open("GET", address, true);
|
||||||
xhttp.send();
|
xhttp.send();
|
||||||
|
Loading…
Reference in New Issue
Block a user