mirror of
https://github.com/http-party/node-http-proxy.git
synced 2025-12-08 20:59:18 +00:00
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:
parent
25c06a3a95
commit
2caa5d2b0d
@ -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];
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user