@@ -91,7 +91,7 @@ Agent.defaultMaxSockets = Infinity;
9191Agent . prototype . createConnection = net . createConnection ;
9292
9393// Get the key for a given set of request options
94- Agent . prototype . getName = function ( options ) {
94+ Agent . prototype . getName = function getName ( options ) {
9595 var name = options . host || 'localhost' ;
9696
9797 name += ':' ;
@@ -110,7 +110,7 @@ Agent.prototype.getName = function(options) {
110110 return name ;
111111} ;
112112
113- Agent . prototype . addRequest = function ( req , options ) {
113+ Agent . prototype . addRequest = function addRequest ( req , options ) {
114114 // Legacy API: addRequest(req, host, port, localAddress)
115115 if ( typeof options === 'string' ) {
116116 options = {
@@ -173,7 +173,7 @@ Agent.prototype.addRequest = function(req, options) {
173173 }
174174} ;
175175
176- Agent . prototype . createSocket = function ( req , options , cb ) {
176+ Agent . prototype . createSocket = function createSocket ( req , options , cb ) {
177177 var self = this ;
178178 options = util . _extend ( { } , options ) ;
179179 options = util . _extend ( options , self . options ) ;
@@ -236,7 +236,7 @@ Agent.prototype.createSocket = function(req, options, cb) {
236236 }
237237} ;
238238
239- Agent . prototype . removeSocket = function ( s , options ) {
239+ Agent . prototype . removeSocket = function removeSocket ( s , options ) {
240240 var name = this . getName ( options ) ;
241241 debug ( 'removeSocket' , name , 'writable:' , s . writable ) ;
242242 var sets = [ this . sockets ] ;
@@ -275,7 +275,7 @@ Agent.prototype.removeSocket = function(s, options) {
275275 }
276276} ;
277277
278- Agent . prototype . destroy = function ( ) {
278+ Agent . prototype . destroy = function destroy ( ) {
279279 var sets = [ this . freeSockets , this . sockets ] ;
280280 for ( var s = 0 ; s < sets . length ; s ++ ) {
281281 var set = sets [ s ] ;
0 commit comments