NodeJS 0.4.2 http.request: can an error event be fired after calling a response callback?

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?

+3
source share
2 answers

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.

+1
source

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 !

0

All Articles