Change to raise socket io timeout, heartbeat interval and timeout to lower offline period

This commit is contained in:
Wu Cheng-Han 2016-10-23 21:42:27 +08:00
parent 3db1214ecf
commit 223c0726cd

View file

@ -50,8 +50,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 || 1000;
var heartbeattimeout = config.heartbeattimeout || 5000;
var heartbeatinterval = config.heartbeatinterval || 5000;
var heartbeattimeout = config.heartbeattimeout || 10000;
// document
var documentmaxlength = config.documentmaxlength || 100000;