On Thu, Aug 16, 2012 at 6:51 AM, jason.桂林 <[email protected]> wrote: > To prevent server halt on error, listen the > `process.on('uncaughtException')`, but the response will timeout. > > How to fix this problem, will these timeout req/res make memory leak ?
Quite possibly. An uncaught exception leaves your application (and node itself) in an undefined state. The only sensible thing to do is to restart your application. We're going to remove uncaughtException in a future version of node. Use domains instead. -- 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
