While investigating another HTTP problem I discovered that there are
times when the 'end' event is sometimes never emitted on an HTTP
client response object.
You can run this test script like Curl, by passing in a single
argument; the full HTTP URL of your target.
https://gist.github.com/1047559
For example:
If I call `node test_request.js
http://www.example.com` or `node
test_request.js
http://www.amazon.com` I always see the 'end' event
fired.
But, sometimes, when I do `node test_request.js
http://www.google.com`
the 'end' event is sometimes never called, but not always.
Any ideas on why this is? Is it expected? And if so, what are some
common workarounds to confirming the whole body has been received?