Skip to content

Commit

Permalink
added unlimited listeners to the reverproxy event obj.
Browse files Browse the repository at this point in the history
  • Loading branch information
vinodsr authored and indexzero committed Dec 27, 2013
1 parent 2d42709 commit 1333c0c
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions lib/node-http-proxy/http-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,10 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
res.on('drain', ondrain);
});


// allow unlimited listeners ...
reverseProxy.setMaxListeners(0);

//
// Handle 'error' events from the `reverseProxy`. Setup timeout override if needed
//
Expand Down

0 comments on commit 1333c0c

Please sign in to comment.