We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7f03bca commit 89662f9Copy full SHA for 89662f9
lib/node-http-proxy.js
@@ -27,7 +27,7 @@
27
var util = require('util'),
28
http = require('http'),
29
events = require('events'),
30
- maxSockets = 100;
+ maxSockets = 500;
31
32
//
33
// Expose version information through `pkginfo`.
@@ -281,8 +281,6 @@ exports._getAgent = function _getAgent (options) {
281
// require('http-proxy').setMaxSockets() should override http's default
282
// configuration value (which is pretty low).
283
options.maxSockets = options.maxSockets || maxSockets;
284
- options.maxSockets = 1;
285
- http.globalAgent.maxSockets = 1;
286
agent = new Agent(options);
287
288
return agent;
0 commit comments