http-browserify icon indicating copy to clipboard operation
http-browserify copied to clipboard

response events eventually stop.

Open mikeal opened this issue 11 years ago • 0 comments

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.

mikeal avatar Apr 26 '13 23:04 mikeal