summaryrefslogtreecommitdiff
path: root/lib
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 /lib
parent1df5b4ce4956b3e08a42e17b10dd86efd9a503ab (diff)
Reduce realtime timeout and heartbeat interval to handle stale clients quicker
Diffstat (limited to 'lib')
-rw-r--r--lib/config.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/config.js b/lib/config.js
index de49b4d7..7c21601d 100644
--- a/lib/config.js
+++ b/lib/config.js
@@ -49,8 +49,8 @@ var sessionlife = config.sessionlife || 14 * 24 * 60 * 60 * 1000; //14 days
var staticcachetime = config.staticcachetime || 1 * 24 * 60 * 60 * 1000; // 1 day
// socket.io
-var heartbeatinterval = config.heartbeatinterval || 5000;
-var heartbeattimeout = config.heartbeattimeout || 10000;
+var heartbeatinterval = config.heartbeatinterval || 1000;
+var heartbeattimeout = config.heartbeattimeout || 5000;
// document
var documentmaxlength = config.documentmaxlength || 100000;