Skip to content

Commit 8ac1ff7

Browse files
dschenkelmanjasnell
authored andcommitted
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: #4407 Reviewed-By: Brian White <[email protected]> Reviewed-By: Fedor Indutny <[email protected]> Reviewed-By: Colin Ihrig <[email protected]> Reviewed-By: James M Snell <[email protected]>
1 parent a0130e1 commit 8ac1ff7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/_http_agent.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ function Agent(options) {
5858
if (req &&
5959
req.shouldKeepAlive &&
6060
!socket.destroyed &&
61-
self.options.keepAlive) {
61+
self.keepAlive) {
6262
var freeSockets = self.freeSockets[name];
6363
var freeLen = freeSockets ? freeSockets.length : 0;
6464
var count = freeLen;

0 commit comments

Comments
 (0)