I'm using node 0.11.13 with --harmony running koa and compressing using
koa-compress, which in turn uses zlib. Here's the error right before the
process dies:
TypeError: Cannot read property 'address' of null
at Object.loggerMiddleware (/path/to/my/logging-code.js:19:32)
at GeneratorFunctionPrototype.next (native)
at Object.next (/path/to/my/node_modules/co/index.js:83:21)
at Object.<anonymous> (/path/to/my/node_modules/co/index.js:102:18)
at processImmediate [as _immediateCallback] (timers.js:374:17)
Assertion failed: (!ctx->pending_close_ && "close is pending"), function
Write, file ../src/node_zlib.cc, line 150.
Abort trap: 6
I can somewhat reliably trigger the error by doing xhr.abort() from inside
the browser. And unsurprisingly I can no longer seem to trigger it if I
stop gzipping my responses.
If this were a normal JS exception it would have been caught, a stack trace
logged (above) and a 500 response sent to the user. (The thing that was
null was supposed to be a socket.) But I'm assuming that's merely a side
effect of the zlib.cc failure?
--
Job board: http://jobs.nodejs.org/
New group rules:
https://gist.github.com/othiym23/9886289#file-moderation-policy-md
Old group rules:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/nodejs/16dfc8ba-96ea-4258-a8b0-90be5cc641ad%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.