Skip to content

Commit e1d384e

Browse files
committed
[fix] Respect maxSockets from target options in RoutingProxy
1 parent 5ff2b6e commit e1d384e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

lib/node-http-proxy/routing-proxy.js

+2
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,7 @@ var RoutingProxy = exports.RoutingProxy = function (options) {
4242
//
4343
this.target = {};
4444
this.target.https = options.target && options.target.https;
45+
this.target.maxSockets = options.target && options.target.maxSockets;
4546

4647
//
4748
// Setup other default options to be used for instances of
@@ -91,6 +92,7 @@ RoutingProxy.prototype.add = function (options) {
9192
options.target.socketPath = options.target.socketPath || options.socketPath;
9293
options.target.https = this.target && this.target.https ||
9394
options.target && options.target.https;
95+
options.target.maxSockets = this.target && this.target.maxSockets;
9496

9597
//
9698
// Setup options to pass-thru to the new `HttpProxy` instance

0 commit comments

Comments
 (0)