In Node 0.4.2, is it possible to http.request()return both through a callback and in an error event? If, for example, a socket error occurs after reading the response body?
http.request()
Perhaps http.request () will fire an error event after a response event has been triggered, for example, if the server you are calling to is down, responding to your request.
Could you clarify your question?
There is a common catch-all error trailer:
http://nodejs.org/docs/v0.4.4/api/all.html#event_uncaughtException_
# node.js !