Skip to content

Commit

Permalink
http: use self.keepAlive instead of self.options.keepAlive
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
dschenkelman authored and Fishrock123 committed Jan 6, 2016
1 parent ccd75fe commit 083ae16
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 083ae16

Please sign in to comment.