@@ -269,7 +269,7 @@ function onSocketEnd() {
269
269
this . readable = false ;
270
270
maybeDestroy ( this ) ;
271
271
} else {
272
- this . once ( 'end' , function ( ) {
272
+ this . once ( 'end' , function end ( ) {
273
273
this . readable = false ;
274
274
maybeDestroy ( this ) ;
275
275
} ) ;
@@ -669,7 +669,7 @@ Socket.prototype._writeGeneric = function(writev, data, encoding, cb) {
669
669
if ( this . connecting ) {
670
670
this . _pendingData = data ;
671
671
this . _pendingEncoding = encoding ;
672
- this . once ( 'connect' , function ( ) {
672
+ this . once ( 'connect' , function connect ( ) {
673
673
this . _writeGeneric ( writev , data , encoding , cb ) ;
674
674
} ) ;
675
675
return ;
@@ -991,7 +991,7 @@ function lookupAndConnect(self, options) {
991
991
debug ( 'connect: dns options' , dnsopts ) ;
992
992
self . _host = host ;
993
993
var lookup = options . lookup || dns . lookup ;
994
- lookup ( host , dnsopts , function ( err , ip , addressType ) {
994
+ lookup ( host , dnsopts , function emitLookup ( err , ip , addressType ) {
995
995
self . emit ( 'lookup' , err , ip , addressType , host ) ;
996
996
997
997
// It's possible we were destroyed while looking this up.
@@ -1389,7 +1389,7 @@ Server.prototype.listen = function() {
1389
1389
} ;
1390
1390
1391
1391
function lookupAndListen ( self , port , address , backlog , exclusive ) {
1392
- require ( 'dns' ) . lookup ( address , function ( err , ip , addressType ) {
1392
+ require ( 'dns' ) . lookup ( address , function doListening ( err , ip , addressType ) {
1393
1393
if ( err ) {
1394
1394
self . emit ( 'error' , err ) ;
1395
1395
} else {
@@ -1494,7 +1494,7 @@ Server.prototype.close = function(cb) {
1494
1494
1495
1495
if ( typeof cb === 'function' ) {
1496
1496
if ( ! this . _handle ) {
1497
- this . once ( 'close' , function ( ) {
1497
+ this . once ( 'close' , function close ( ) {
1498
1498
cb ( new Error ( 'Not running' ) ) ;
1499
1499
} ) ;
1500
1500
} else {
0 commit comments