Closed msimerson closed 8 years ago
See net api docs for remoteAddress.
The funny thing is that the client doesn't disconnect yet at the time of error. Something's fishy with nodejs.
pluggableStream {
domain: null,
_events:
{ data: [Function],
end: [ [Function], [Function] ],
line: [Function],
connect: [Function],
error: [Function],
timeout: [Function],
close: [Function] },
_eventsCount: 7,
_maxListeners: undefined,
writable: true,
readable: true,
_timeout: 300000,
_keepalive: true,
_writeState: true,
_pending: [],
_pendingCallbacks: [],
targetsocket:
Socket {
_connecting: false,
_hadError: false,
_handle:
TCP {
_externalStream: {},
fd: 23,
reading: false,
owner: [Circular],
onread: [Function: onread],
onconnection: null,
writeQueueSize: 0 },
_parent: null,
_host: null,
_readableState:
ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: false,
endEmitted: false,
reading: true,
sync: false,
needReadable: true,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false },
readable: true,
domain: null,
_events:
{ end: [Object],
finish: [Function: onSocketFinish],
_socketEnd: [Function: onSocketEnd],
data: [Function],
connect: [Object],
secureConnection: [Function],
secure: [Function],
close: [Function],
drain: [Function],
error: [Function],
timeout: [Function] },
_eventsCount: 11,
_maxListeners: undefined,
_writableState:
WritableState {
objectMode: false,
highWaterMark: 16384,
needDrain: false,
ending: false,
ended: false,
finished: false,
decodeStrings: false,
defaultEncoding: 'utf8',
length: 0,
writing: false,
corked: 0,
sync: true,
bufferProcessing: false,
onwrite: [Function],
writecb: null,
writelen: 0,
bufferedRequest: null,
lastBufferedRequest: null,
pendingcb: 0,
prefinished: false,
errorEmitted: false },
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 0,
_bytesDispatched: 0,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
_idleTimeout: 300000,
_idleNext:
Socket {
_connecting: false,
_hadError: false,
_handle: [Object],
_parent: null,
_host: null,
_readableState: [Object],
readable: true,
domain: null,
_events: [Object],
_eventsCount: 11,
_maxListeners: undefined,
_writableState: [Object],
writable: true,
allowHalfOpen: false,
destroyed: false,
bytesRead: 384,
_bytesDispatched: 402,
_sockname: null,
_pendingData: null,
_pendingEncoding: '',
server: [Object],
_peername: [Object],
_idleTimeout: 600000,
_idleNext: [Object],
_idlePrev: [Circular],
_idleStart: 3853,
read: [Function],
_consuming: true },
_idlePrev: { _idleNext: [Circular], _idlePrev: [Object] },
_idleStart: 3924,
read: [Function],
_consuming: true },
upgrade: [Function],
process_data: [Function],
process_end: [Function] }
Running into the same problem with node v5.7.1 and Haraka 2.8.0-alpha.7
The temporary workaround seems to take care of it. Weird.
Same trouble. Workaround is working. Thanks!
related to #1361
Node.js version
Tested on v4 and v5
Haraka version
Starting up Haraka version 2.8.0-alpha.5
Yes, alpha.5 (and later) includes the patch in PR #1362
Expected behavior
not to crash.
Observed behavior
Steps to reproduce
Temporary workaround