From 5eb6b2deecef97d5829502d0b4c67adeb876dec7 Mon Sep 17 00:00:00 2001 From: Slava Kim Date: Wed, 15 Oct 2014 18:55:17 -0700 Subject: [PATCH] Increase the pool of fd's for httpproxy 1K should be fine as long as user's ulimit is not too low, but we set the ulimit for user in the install script, so it should be fine. --- tools/run-httpproxy.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/run-httpproxy.js b/tools/run-httpproxy.js index e63c05fe34..c96db2d1ae 100644 --- a/tools/run-httpproxy.js +++ b/tools/run-httpproxy.js @@ -44,7 +44,7 @@ _.extend(HttpProxy.prototype, { self.proxy = httpProxy.createProxyServer({ // agent is required to handle keep-alive, and http-proxy 1.0 is a little // buggy without it: https://github.com/nodejitsu/node-http-proxy/pull/488 - agent: new http.Agent({ maxSockets: 100 }), + agent: new http.Agent({ maxSockets: 1000 }), xfwd: false //true });