The number of maxSockets has to be set after the agent is created. Setting the property in the constructor does not work.

This commit is contained in:
KimSchneider 2011-08-01 13:22:30 +03:00
parent 25c06a3a95
commit 2caa5d2b0d

View File

@ -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];