summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-07-02 16:15:05 +0800
committerWu Cheng-Han2016-07-02 16:15:05 +0800
commitda7b6a340d74878ded59c50780463ddc9a9bfabc (patch)
tree5884f6b5661cfacdaa8463da87089f389ac24ae2 /public
parent1df5b4ce4956b3e08a42e17b10dd86efd9a503ab (diff)
Reduce realtime timeout and heartbeat interval to handle stale clients quicker
Diffstat (limited to 'public')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 38882949..25bb6a99 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -2049,7 +2049,7 @@ function havePermission() {
//socket.io actions
var socket = io.connect({
path: urlpath ? '/' + urlpath + '/socket.io/' : '',
- timeout: 10000 //10 secs to timeout
+ timeout: 5000 //5 secs to timeout
});
//overwrite original event for checking login state
var on = socket.on;