From de87d10e666f48774109f96e168f1ca05b9d3052 Mon Sep 17 00:00:00 2001 From: giongto35 Date: Mon, 9 Sep 2019 22:36:47 +0800 Subject: [PATCH] Update latency check timeout --- static/js/ws.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/ws.js b/static/js/ws.js index 3f06be06d..f0dbdf182 100644 --- a/static/js/ws.js +++ b/static/js/ws.js @@ -96,7 +96,7 @@ conn.onmessage = e => { // TODO: Clean code, use async var xmlHttp = new XMLHttpRequest(); xmlHttp.open( "GET", "http://"+addr+":9000/echo?_=" + beforeTime, true ); // false for synchronous request, add date to not calling cache - xmlHttp.timeout = 1000 + xmlHttp.timeout = 2000 xmlHttp.ontimeout = () => { cntResp++; afterTime = Date.now();