diff --git a/lib/websocket/transports/socketio/index.js b/lib/websocket/transports/socketio/index.js index 4ef29453..d8161841 100644 --- a/lib/websocket/transports/socketio/index.js +++ b/lib/websocket/transports/socketio/index.js @@ -14,6 +14,7 @@ exports.init = function(emitter, httpServer, config) { var io; io = socketio.listen(httpServer); io.set('log level', 1); + io.set('close timeout', 60 * 60 * 120); if ((config != null ? config.io : void 0) != null) config.io(io); io.sockets.on('connection', function(socket) { if (processSession(socket)) { diff --git a/src/websocket/transports/socketio/index.coffee b/src/websocket/transports/socketio/index.coffee index cd42ec44..6e218cb4 100644 --- a/src/websocket/transports/socketio/index.coffee +++ b/src/websocket/transports/socketio/index.coffee @@ -14,6 +14,9 @@ exports.init = (emitter, httpServer, config) -> # Set default log level. Can be overwritten using app config io.set 'log level', 1 + + # Temporary fix for https://github.com/LearnBoost/socket.io/issues/777 REMOVE_BEFORE_0.3.0 + io.set('close timeout', 60*60*120) # Allow app to configure Socket.IO using the syntax below # ss.ws.transport.use('socketio', {io: function(io){