In the Node.JS docs for HTTP (v0.8.20), under ServerRequest, I see events for data and end. I do not see an event for error.
Normally, if there was an interruption while receiving data, I could detect it by looking at error. But will that work for postdata?
How can I be sure whether have received the entire postdata, and that it was not truncated due to network failure?
I have not confirmed this with actual running code, but just looking at the manual, http.ServerRequest is a Readable Stream and that has Event: 'error' documented.
there's been a recent issue on this: https://github.com/joyent/node/pull/4775
in general, you should always listen for and handle errors from any streams and eventemitters