@ -38,7 +38,7 @@ var WriteWrap = process.binding('stream_wrap').WriteWrap;
var cluster ;
var errnoException = util . _ errnoException ;
var d etailedE xception = util . _ d etailedE xception;
var exceptionWithHostPort = util . _ exceptionWithHostPort ;
function noop ( ) { }
@ -763,7 +763,7 @@ function afterWrite(status, handle, req, err) {
}
if ( status < 0 ) {
var ex = d etailedE xception( status , 'write' , req . address , req . port ) ;
var ex = exceptionWithHostPort ( status , 'write' , req . address , req . port ) ;
debug ( 'write failure' , ex ) ;
self . _ destroy ( ex , req . cb ) ;
return ;
@ -809,7 +809,7 @@ function connect(self, address, port, addressType, localAddress, localPort) {
err = bind ( localAddress , localPort ) ;
if ( err ) {
var ex = d etailedE xception( err , 'bind' , localAddress , localPort ) ;
var ex = exceptionWithHostPort ( err , 'bind' , localAddress , localPort ) ;
self . _ destroy ( ex ) ;
return ;
}
@ -841,7 +841,7 @@ function connect(self, address, port, addressType, localAddress, localPort) {
ex . localPort = self . _ sockname . port ;
details = ex . localAddress + ':' + ex . localPort ;
}
var ex = d etailedE xception( err , 'connect' , address , port , details ) ;
var ex = exceptionWithHostPort ( err , 'connect' , address , port , details ) ;
self . _ destroy ( ex ) ;
}
}
@ -1001,11 +1001,11 @@ function afterConnect(status, handle, req, readable, writable) {
ex . localPort = req . localPort ;
details = ex . localAddress + ':' + ex . localPort ;
}
var ex = d etailedE xception( status ,
'connect' ,
req . address ,
req . port ,
details ) ;
var ex = exceptionWithHostPort ( status ,
'connect' ,
req . address ,
req . port ,
details ) ;
self . _ destroy ( ex ) ;
}
}
@ -1135,7 +1135,7 @@ Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
debug ( '_listen2: create a handle' ) ;
var rval = createServerHandle ( address , port , addressType , fd ) ;
if ( util . isNumber ( rval ) ) {
var error = d etailedE xception( rval , 'listen' , address , port ) ;
var error = exceptionWithHostPort ( rval , 'listen' , address , port ) ;
process . nextTick ( function ( ) {
self . emit ( 'error' , error ) ;
} ) ;
@ -1152,7 +1152,7 @@ Server.prototype._listen2 = function(address, port, addressType, backlog, fd) {
var err = _ listen ( self . _ handle , backlog ) ;
if ( err ) {
var ex = d etailedE xception( err , 'listen' , address , port ) ;
var ex = exceptionWithHostPort ( err , 'listen' , address , port ) ;
self . _ handle . close ( ) ;
self . _ handle = null ;
process . nextTick ( function ( ) {
@ -1201,7 +1201,7 @@ function listen(self, address, port, addressType, backlog, fd, exclusive) {
}
if ( err ) {
var ex = d etailedE xception( err , 'bind' , address , port ) ;
var ex = exceptionWithHostPort ( err , 'bind' , address , port ) ;
return self . emit ( 'error' , ex ) ;
}