diff --git a/lib/node-http-proxy.js b/lib/node-http-proxy.js index 227d06f34..1340cabc4 100644 --- a/lib/node-http-proxy.js +++ b/lib/node-http-proxy.js @@ -61,9 +61,10 @@ function _getAgent (host, port, secure) { _agents[id] = new Agent({ host: host, - port: port, - maxSockets: maxSockets + port: port }); + + _agents[id].maxSockets = maxSockets; } return _agents[id];