Permalink
Browse files

Eliminate timeout on WebSocket connections

  • Loading branch information...
1 parent a8cfb1d commit fc2cfdec0aab23a43e05eb4b37cd3a80fec17374 @kriszyp kriszyp committed Jul 1, 2011
Showing with 1 addition and 0 deletions.
  1. +1 −0 lib/ws-jsgi.js
View
@@ -4,6 +4,7 @@ var when = require("./promise").when,
module.exports = function(socketServer, jsgiApp){
socketServer.on("connection", function(connection){
+ connection._req.connection.setTimeout(0);
function Request(){}
Request.prototype = new NodeRequest(connection._req);
function Headers(){}

0 comments on commit fc2cfde

Please sign in to comment.