In the article about node's domains <http://nodejs.org/api/domain.html>, they say I should not ignore errors -
*"The better approach is send an error response to the request that > triggered the error, while letting the others finish in their normal time, > and stop listening for new requests in that worker."* So my question is, on what types of errors should I close the process: - Should I close the process on *any* error? - what If the error *is not part of the req/res cycle* - should I still close the process? let's say I was doing some calculations on data from the DB, and then when saving it again to the DB, I got an error as the first callback argument - should I close the process ? - Should I close the process only when I get *"uncaught exception"* ? What If I use "domains", what's the equivalence there to *"uncaught exception" *? should in this case every bit of code I write needs to be inside some domain ? *So in general - I would be happy for some general guidelines about when to close a node.js process.* Thanks. -- -- Job Board: http://jobs.nodejs.org/ Posting guidelines: https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines You received this message because you are subscribed to the Google Groups "nodejs" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/nodejs?hl=en?hl=en --- You received this message because you are subscribed to the Google Groups "nodejs" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/groups/opt_out.
