Skip to content

Commit

Permalink
[fix] Respect maxSockets from target options in RoutingProxy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmalecki committed Jun 20, 2013
1 parent 5ff2b6e commit e1d384e
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/node-http-proxy/routing-proxy.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ var RoutingProxy = exports.RoutingProxy = function (options) {
//
this.target = {};
this.target.https = options.target && options.target.https;
this.target.maxSockets = options.target && options.target.maxSockets;

//
// Setup other default options to be used for instances of
Expand Down Expand Up @@ -91,6 +92,7 @@ RoutingProxy.prototype.add = function (options) {
options.target.socketPath = options.target.socketPath || options.socketPath;
options.target.https = this.target && this.target.https ||
options.target && options.target.https;
options.target.maxSockets = this.target && this.target.maxSockets;

//
// Setup options to pass-thru to the new `HttpProxy` instance
Expand Down

0 comments on commit e1d384e

Please sign in to comment.