indexzero/forever — pull request #146 by medikoo (2011-10-20 13:39:19+00:00)
Title: Make sure all data is streamed before we try to parse it.

It may happen that JSON string is split into more than one packet, in such case script was trying to parse just portion of received data and failed with parse error.

I was trying to cover it in tests, but unfortunately I'm not that familiar with project internals.
Anyway above issue is obvious, my application didn't work right cause of that.