Skip to content

Commit 1333c0c

Browse files
vinodsrindexzero
authored andcommitted
added unlimited listeners to the reverproxy event obj.
1 parent 2d42709 commit 1333c0c

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

lib/node-http-proxy/http-proxy.js

+4
Original file line numberDiff line numberDiff line change
@@ -371,6 +371,10 @@ HttpProxy.prototype.proxyRequest = function (req, res, buffer) {
371371
res.on('drain', ondrain);
372372
});
373373

374+
375+
// allow unlimited listeners ...
376+
reverseProxy.setMaxListeners(0);
377+
374378
//
375379
// Handle 'error' events from the `reverseProxy`. Setup timeout override if needed
376380
//

0 commit comments

Comments
 (0)