Skip to content

Commit 89662f9

Browse files
committed
Bump default number of concurrent sockets from 100 to 500.
1 parent 7f03bca commit 89662f9

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

lib/node-http-proxy.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
var util = require('util'),
2828
http = require('http'),
2929
events = require('events'),
30-
maxSockets = 100;
30+
maxSockets = 500;
3131

3232
//
3333
// Expose version information through `pkginfo`.
@@ -281,8 +281,6 @@ exports._getAgent = function _getAgent (options) {
281281
// require('http-proxy').setMaxSockets() should override http's default
282282
// configuration value (which is pretty low).
283283
options.maxSockets = options.maxSockets || maxSockets;
284-
options.maxSockets = 1;
285-
http.globalAgent.maxSockets = 1;
286284
agent = new Agent(options);
287285

288286
return agent;

0 commit comments

Comments
 (0)