From 41fcda840c3bf66cd5b90d30fe61a188acdd4cd9 Mon Sep 17 00:00:00 2001 From: Damian Schenkelman Date: Wed, 23 Dec 2015 20:52:01 -0300 Subject: [PATCH] http: use `self.keepAlive` instead of `self.options.keepAlive` In http.agent, all other options are directly accessed through `self.` not `self.options`. PR-URL: https://github.com/nodejs/node/pull/4407 Reviewed-By: Brian White Reviewed-By: Fedor Indutny Reviewed-By: Colin Ihrig Reviewed-By: James M Snell --- lib/_http_agent.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/_http_agent.js b/lib/_http_agent.js index c6e3ef63bd..ddb1c5bfff 100644 --- a/lib/_http_agent.js +++ b/lib/_http_agent.js @@ -58,7 +58,7 @@ function Agent(options) { if (req && req.shouldKeepAlive && !socket.destroyed && - self.options.keepAlive) { + self.keepAlive) { var freeSockets = self.freeSockets[name]; var freeLen = freeSockets ? freeSockets.length : 0; var count = freeLen;