Commit 2caa5d2b authored by KimSchneider's avatar KimSchneider

The number of maxSockets has to be set after the agent is created. Setting the...

The number of maxSockets has to be set after the agent is created. Setting the property in the constructor does not work.
parent 25c06a3a
......@@ -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];
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment