From 223c0726cdc2c074c1404fb2d26c1f5f7dbcee73 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sun, 23 Oct 2016 21:42:27 +0800 Subject: [PATCH] Change to raise socket io timeout, heartbeat interval and timeout to lower offline period --- lib/config.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/config.js b/lib/config.js index 631149758..b781c82b3 100644 --- a/lib/config.js +++ b/lib/config.js @@ -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;