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.
This commit is contained in:
Slava Kim
2014-10-15 18:55:17 -07:00
parent a8bcb24fcb
commit 5eb6b2deec

View File

@@ -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
});