From d07c83e111f3367870d4fd71b016ed5e2ea8c77b Mon Sep 17 00:00:00 2001 From: Rsl1122 Date: Sat, 19 Oct 2019 12:52:21 +0300 Subject: [PATCH] Increased JSON request timeout Some JSON requests were timing out with slow internet speeds. Request timeout increased: 20s -> 45s Affects issues: - Close #1185 --- .../src/main/resources/assets/plan/web/js/xmlhttprequests.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Plan/common/src/main/resources/assets/plan/web/js/xmlhttprequests.js b/Plan/common/src/main/resources/assets/plan/web/js/xmlhttprequests.js index 12537a730..51e6b62d0 100644 --- a/Plan/common/src/main/resources/assets/plan/web/js/xmlhttprequests.js +++ b/Plan/common/src/main/resources/assets/plan/web/js/xmlhttprequests.js @@ -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();