File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -49,8 +49,8 @@ var sessionlife = config.sessionlife || 14 * 24 * 60 * 60 * 1000; //14 days
4949var staticcachetime = config . staticcachetime || 1 * 24 * 60 * 60 * 1000 ; // 1 day
5050
5151// socket.io
52- var heartbeatinterval = config . heartbeatinterval || 5000 ;
53- var heartbeattimeout = config . heartbeattimeout || 10000 ;
52+ var heartbeatinterval = config . heartbeatinterval || 1000 ;
53+ var heartbeattimeout = config . heartbeattimeout || 5000 ;
5454
5555// document
5656var documentmaxlength = config . documentmaxlength || 100000 ;
Original file line number Diff line number Diff line change @@ -2049,7 +2049,7 @@ function havePermission() {
20492049//socket.io actions
20502050var socket = io . connect ( {
20512051 path : urlpath ? '/' + urlpath + '/socket.io/' : '' ,
2052- timeout : 10000 //10 secs to timeout
2052+ timeout : 5000 //5 secs to timeout
20532053} ) ;
20542054//overwrite original event for checking login state
20552055var on = socket . on ;
You can’t perform that action at this time.
0 commit comments