Skip to content
Closed
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
change to local function instead of prototype
  • Loading branch information
evantorrie committed Dec 9, 2016
commit f774e72333275e78e786a2e2dd38bcfd3db11913
6 changes: 3 additions & 3 deletions lib/_http_agent.js
Original file line number Diff line number Diff line change
Expand Up @@ -206,13 +206,13 @@ Agent.prototype.createSocket = function createSocket(req, options, cb) {
}
self.sockets[name].push(s);
debug('sockets', name, self.sockets[name].length);
self._installListeners(s,options);
installListeners(self, s, options);
cb(null, s);
}
};

Agent.prototype._installListeners = function installListeners(s, options) {
var self = this;
function installListeners(agent, s, options) {
var self = agent;

function onFree() {
debug('CLIENT socket onFree');
Expand Down