Skip to content

Commit

Permalink
Temporary fix for socketio/socket.io#777
Browse files Browse the repository at this point in the history
  • Loading branch information
Owen Barnes committed Mar 7, 2012
1 parent d63f0ab commit 2e5691c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
1 change: 1 addition & 0 deletions lib/websocket/transports/socketio/index.js
Expand Up @@ -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)) {
Expand Down
3 changes: 3 additions & 0 deletions src/websocket/transports/socketio/index.coffee
Expand Up @@ -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){
Expand Down

0 comments on commit 2e5691c

Please sign in to comment.