@@ -91,7 +91,7 @@ Agent.defaultMaxSockets = Infinity;
91
91
Agent . prototype . createConnection = net . createConnection ;
92
92
93
93
// Get the key for a given set of request options
94
- Agent . prototype . getName = function ( options ) {
94
+ Agent . prototype . getName = function getName ( options ) {
95
95
var name = options . host || 'localhost' ;
96
96
97
97
name += ':' ;
@@ -110,7 +110,7 @@ Agent.prototype.getName = function(options) {
110
110
return name ;
111
111
} ;
112
112
113
- Agent . prototype . addRequest = function ( req , options ) {
113
+ Agent . prototype . addRequest = function addRequest ( req , options ) {
114
114
// Legacy API: addRequest(req, host, port, localAddress)
115
115
if ( typeof options === 'string' ) {
116
116
options = {
@@ -173,7 +173,7 @@ Agent.prototype.addRequest = function(req, options) {
173
173
}
174
174
} ;
175
175
176
- Agent . prototype . createSocket = function ( req , options , cb ) {
176
+ Agent . prototype . createSocket = function createSocket ( req , options , cb ) {
177
177
var self = this ;
178
178
options = util . _extend ( { } , options ) ;
179
179
options = util . _extend ( options , self . options ) ;
@@ -236,7 +236,7 @@ Agent.prototype.createSocket = function(req, options, cb) {
236
236
}
237
237
} ;
238
238
239
- Agent . prototype . removeSocket = function ( s , options ) {
239
+ Agent . prototype . removeSocket = function removeSocket ( s , options ) {
240
240
var name = this . getName ( options ) ;
241
241
debug ( 'removeSocket' , name , 'writable:' , s . writable ) ;
242
242
var sets = [ this . sockets ] ;
@@ -275,7 +275,7 @@ Agent.prototype.removeSocket = function(s, options) {
275
275
}
276
276
} ;
277
277
278
- Agent . prototype . destroy = function ( ) {
278
+ Agent . prototype . destroy = function destroy ( ) {
279
279
var sets = [ this . freeSockets , this . sockets ] ;
280
280
for ( var s = 0 ; s < sets . length ; s ++ ) {
281
281
var set = sets [ s ] ;
0 commit comments