From e1d384e769e9f4adc5a06c516cfb721ff24b4b6d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Maciej=20Ma=C5=82ecki?= Date: Thu, 20 Jun 2013 15:28:47 +0200 Subject: [PATCH] [fix] Respect `maxSockets` from `target` options in `RoutingProxy` --- lib/node-http-proxy/routing-proxy.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/node-http-proxy/routing-proxy.js b/lib/node-http-proxy/routing-proxy.js index 72a0507f1..b294fb15d 100644 --- a/lib/node-http-proxy/routing-proxy.js +++ b/lib/node-http-proxy/routing-proxy.js @@ -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 @@ -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