Skip to content

Commit 604ed28

Browse files
committed
closes #80 Conflicts: lib/node-http-proxy.js
2 parents e6ff8d6 + 2caa5d2 commit 604ed28

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

lib/node-http-proxy.js

+5-4
Original file line numberDiff line numberDiff line change
@@ -59,11 +59,12 @@ function _getAgent (host, port, secure) {
5959
if (!_agents[id]) {
6060
Agent = secure ? https.Agent : http.Agent;
6161

62-
_agents[id] = new Agent({
63-
host: host,
64-
port: port,
65-
maxSockets: maxSockets
62+
_agents[id] = new Agent({
63+
host: host,
64+
port: port
6665
});
66+
67+
_agents[id].maxSockets = maxSockets;
6768
}
6869

6970
return _agents[id];

0 commit comments

Comments
 (0)