Skip to content

Instantly share code, notes, and snippets.

@qcom
Created September 27, 2015 20:13
Show Gist options
  • Save qcom/2a31bb3fc56946a7757e to your computer and use it in GitHub Desktop.
Save qcom/2a31bb3fc56946a7757e to your computer and use it in GitHub Desktop.
longjohn stack trace with NODE_DEBUG=net,tls
NET 84539: _read
NET 84539: Socket._read readStart
NET 84539: _read
NET 84539: Socket._read readStart
NET 84539: _read
NET 84539: Socket._read readStart
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: close
NET 84539: close handle
NET 84539: onread 1030
NET 84539: got data
NET 84539: _read
NET 84539: onread -4095
NET 84539: EOF
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: close
NET 84539: close handle
NET 84539: onSocketEnd ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder:
{ encoding: 'utf8',
surrogateSize: 3,
charBuffer: <Buffer 00 00 00 00 ff ff>,
charReceived: 0,
charLength: 0 },
encoding: 'utf8',
resumeScheduled: false }
NET 84539: onSocketFinish
NET 84539: oSF: ended, destroy ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder:
{ encoding: 'utf8',
surrogateSize: 3,
charBuffer: <Buffer 00 00 00 00 ff ff>,
charReceived: 0,
charLength: 0 },
encoding: 'utf8',
resumeScheduled: false }
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
NET 84539: emit close
NET 84539: emit close
NET 84539: onread -4095
NET 84539: EOF
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: close
NET 84539: close handle
NET 84539: onSocketEnd ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder:
{ encoding: 'utf8',
surrogateSize: 3,
charBuffer: <Buffer 50 ea 87 01 01 00>,
charReceived: 0,
charLength: 0 },
encoding: 'utf8',
resumeScheduled: false }
NET 84539: onSocketFinish
NET 84539: oSF: ended, destroy ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: true,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder:
{ encoding: 'utf8',
surrogateSize: 3,
charBuffer: <Buffer 50 ea 87 01 01 00>,
charReceived: 0,
charLength: 0 },
encoding: 'utf8',
resumeScheduled: false }
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
NET 84539: emit close
27 Sep 12:50:03 - [nodemon] v1.5.1
NET 84539: _read
NET 84539: Socket._read readStart
27 Sep 12:50:03 - [nodemon] to restart at any time, enter `rs`
27 Sep 12:50:03 - [nodemon] watching: *.*
27 Sep 12:50:03 - [nodemon] starting `node app.js`
NET 84539: _read
NET 84539: Socket._read readStart
NET 84539: _read
NET 84539: Socket._read readStart
NET 84542: createConnection [ { port: 6379, host: '127.0.0.1', family: 4 } ]
NET 84542: pipe false undefined
NET 84542: pipe false undefined
NET 84542: _read
NET 84542: _read wait for connection
NET 84542: _read
NET 84542: _read wait for connection
NET 84542: afterConnect
NET 84542: _read
NET 84542: Socket._read readStart
NET 84542: onread 1758
NET 84542: got data
NET 84542: _read
NET 84542: afterConnect
NET 84542: _read
NET 84542: Socket._read readStart
NET 84542: onread 318
NET 84542: got data
NET 84542: _read
NET 84542: listen2 0.0.0.0 3000 4 false undefined
NET 84542: _listen2: create a handle
NET 84542: bind to 0.0.0.0
NET 84542: onconnection
NET 84542: _read
NET 84542: Socket._read readStart
NET 84542: onconnection
NET 84542: _read
NET 84542: Socket._read readStart
NET 84542: onread 2439
NET 84542: got data
NET 84542: _read
[127.0.0.1] GET /rolloff-search?search=92119&option=location @2015-09-27T12:50:11-07:00
NET 84542: pipe false undefined
NET 84542: connect: find host google.com
NET 84542: connect: dns options { family: undefined, hints: 3072 }
NET 84542: _read
NET 84542: _read wait for connection
NET 84542: afterConnect
TLS 84542: start
NET 84542: _read
NET 84542: Socket._read readStart
TLS 84542: secure established
NET 84542: afterWrite 0
NET 84542: afterWrite call cb
NET 84542: onread 561
NET 84542: got data
NET 84542: _read
NET 84542: onSocketFinish
NET 84542: oSF: not ended, call shutdown()
NET 84542: destroy undefined
NET 84542: destroy
NET 84542: close
NET 84542: close handle
NET 84542: pipe false undefined
NET 84542: connect: find host www.google.com
NET 84542: connect: dns options { family: undefined, hints: 3072 }
NET 84542: _read
NET 84542: _read wait for connection
NET 84542: afterShutdown destroyed=true 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 }
NET 84542: emit close
NET 84542: afterConnect
TLS 84542: start
NET 84542: _read
NET 84542: Socket._read readStart
TLS 84542: secure established
NET 84542: afterWrite 0
NET 84542: afterWrite call cb
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1083
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 1355
NET 84542: got data
NET 84542: _read
NET 84542: onread 600
NET 84542: got data
NET 84542: _read
NET 84542: onread -4095
NET 84542: EOF
NET 84542: onSocketEnd ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false }
NET 84542: onSocketFinish
NET 84542: oSF: ended, destroy ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: true,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: false,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null,
resumeScheduled: false }
NET 84542: destroy undefined
NET 84542: destroy
NET 84542: close
NET 84542: close handle
NET 84542: destroy undefined
NET 84542: destroy
NET 84542: already destroyed, fire error callbacks
NET 84542: destroy { [Error: socket hang up] code: 'ECONNRESET' }
NET 84542: destroy
NET 84542: already destroyed, fire error callbacks
NET 84542: destroy undefined
NET 84542: destroy
NET 84542: already destroyed, fire error callbacks
Error: socket hang up
at TLSSocket.onHangUp (_tls_wrap.js:1032:19)
at TLSSocket.g (events.js:260:16)
at emitNone (events.js:72:20)
at TLSSocket.emit (events.js:166:7)
at endReadableNT (_stream_readable.js:893:12)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
---------------------------------------------
at TLSSocket.Readable.on (_stream_readable.js:655:33)
at tickOnSocket (_http_client.js:480:10)
at onSocketNT (_http_client.js:496:5)
at doNTCallback2 (node.js:429:9)
at process._tickCallback (node.js:343:17)
---------------------------------------------
at ClientRequest.onSocket (_http_client.js:488:11)
at Agent.addRequest (_http_agent.js:143:9)
at new ClientRequest (_http_client.js:133:16)
at Object.exports.request (http.js:31:10)
at Object.exports.request (https.js:163:15)
at Request.start (~/project/node_modules/request/request.js:793:30)
at Request.end (~/project/node_modules/request/request.js:1394:10)
at end (~/project/node_modules/request/request.js:564:14)
at Immediate.<anonymous> (~/project/node_modules/request/request.js:578:7)
---------------------------------------------
at Request.init (~/project/node_modules/request/request.js:526:3)
at Redirect.onResponse (~/project/node_modules/request/lib/redirect.js:149:11)
at Request.onRequestResponse (~/project/node_modules/request/request.js:944:22)
at emitOne (events.js:77:13)
at ClientRequest.emit (events.js:169:7)
at HTTPParser.parserOnIncomingClient (_http_client.js:415:21)
at HTTPParser.parserOnHeadersComplete (_http_common.js:88:23)
at TLSSocket.socketOnData (_http_client.js:305:20)
---------------------------------------------
at Request.start (~/project/node_modules/request/request.js:834:12)
at Request.end (~/project/node_modules/request/request.js:1394:10)
at end (~/project/node_modules/request/request.js:564:14)
at Immediate.<anonymous> (~/project/node_modules/request/request.js:578:7)
at processImmediate [as _immediateCallback] (timers.js:374:17)
---------------------------------------------
at Request.init (~/project/node_modules/request/request.js:526:3)
at new Request (~/project/node_modules/request/request.js:140:8)
at request (~/project/node_modules/request/index.js:55:10)
at module.exports (~/project/util/getPosByQuery.js:20:2)
at ~/project/lib/rolloff-search/index.js:38:4
at Layer.handle [as handle_request] (~/project/node_modules/express/lib/router/layer.js:95:5)
at next (~/project/node_modules/express/lib/router/route.js:131:13)
at Route.dispatch (~/project/node_modules/express/lib/router/route.js:112:3)
at Layer.handle [as handle_request] (~/project/node_modules/express/lib/router/layer.js:95:5)
---------------------------------------------
at serveStatic (~/project/node_modules/express/node_modules/serve-static/index.js:114:12)
at Layer.handle [as handle_request] (~/project/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (~/project/node_modules/express/lib/router/index.js:312:13)
at ~/project/node_modules/express/lib/router/index.js:280:7
at Function.process_params (~/project/node_modules/express/lib/router/index.js:330:12)
at next (~/project/node_modules/express/lib/router/index.js:271:10)
at ~/project/node_modules/connect-flash/lib/flash.js:21:5
at Layer.handle [as handle_request] (~/project/node_modules/express/lib/router/layer.js:95:5)
at trim_prefix (~/project/node_modules/express/lib/router/index.js:312:13)
NET 84539: onread -4095
NET 84539: EOF
NET 84539: onSocketEnd ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: null,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: true,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null }
NET 84539: onSocketFinish
NET 84539: oSF: ended, destroy ReadableState {
objectMode: false,
highWaterMark: 16384,
buffer: [],
length: 0,
pipes: null,
pipesCount: 0,
flowing: null,
ended: true,
endEmitted: false,
reading: false,
sync: false,
needReadable: false,
emittedReadable: true,
readableListening: false,
defaultEncoding: 'utf8',
ranOut: false,
awaitDrain: 0,
readingMore: false,
decoder: null,
encoding: null }
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: close
NET 84539: close handle
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
NET 84539: emit close
NET 84539: destroy undefined
NET 84539: destroy
NET 84539: already destroyed, fire error callbacks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment