From 88d1e1ee167f28819edce7349d0155b91c1a0d75 Mon Sep 17 00:00:00 2001 From: Alexander Penev Date: Mon, 14 Mar 2016 12:33:41 +0200 Subject: [PATCH] https: fix ssl socket leak when keepalive is used closes #32 https://github.com/nodejs/node/commit/2e1ae3ead1a3bb7edb8bdb0e717135207d3bfd12 https://github.com/nodejs/node/pull/5713 --- lib/_http_agent.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/_http_agent.js b/lib/_http_agent.js index a633f23..3c20b02 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -168,6 +168,9 @@ Agent.prototype.addRequest = function(req, options) { }; } + options = util._extend({}, options); + options = util._extend(options, this.options); + var name = this.getName(options); if (!this.sockets[name]) { this.sockets[name] = [];