gcp/aichallenge — comment on commit 70bcf13a559d6894cca2cb88ecc6b8f460356360
File:  line 0
By gcp:

>I can't find any documentation that says nodejs will send fragmented lines in the 'data' chunk, most say it flushes on a new line

Do you mean the actual node.js documentation says it will flush, or do you mean many random people are making that assumption on the internet?

As far as I could tell, the documentation says nothing about it, so assuming that it won't be fragmented is just broken. It probably doesn't care about newlines at all. Evidence in point is:

1) I've been hit by this behavior (hence the fix...), and it's not difficult to trigger in ants. Just log the chunks you get.
2) http://stackoverflow.com/questions/6573774/line-oriented-streams-in-node-js Note the existence of libraries that transform the streams into line-based I/O.