Skip to content

Commit

Permalink
Update latency check timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
giongto35 committed Sep 9, 2019
1 parent 719d9c8 commit de87d10
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/js/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -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();
Expand Down

0 comments on commit de87d10

Please sign in to comment.