http-browserify
http-browserify copied to clipboard
response events eventually stop.
I've been testing streaming JSON parsing and i ran in to this bug.
https://gist.github.com/mikeal/5471142
If you comment out the json parsing lines (those fail earlier than this bug surfaces due to a jsonstream bug, you can watch the length of all the chunks that get emitted.
In Firefox these events eventually stop and if you kill the server you'll get an exception when trying to read the last of the data.
In Chrome you'll eventually stop getting chunks with any data in them and it'll emit thousands of zero length chunks.