Skip to content

Commit

Permalink
https: fix ssl socket leak when keepalive is used
Browse files Browse the repository at this point in the history
  • Loading branch information
alexpenev-s authored and fengmk2 committed Apr 5, 2016
1 parent 2975904 commit 88d1e1e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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] = [];
Expand Down

0 comments on commit 88d1e1e

Please sign in to comment.