In my node.js application that uses the cluster module, I periodically see errors like this:
events.js:71 throw er; // Unhandled 'error' event ^ Error: read ECONNRESET at errnoException (net.js:863:11) at TCP.onread (net.js:524:19)
This crashes my entire application, and so far the only way I could handle it is by binding process.on('uncaughtException') . I would like to find out the reason, but the above stack trace is pretty useless.
Is there any way to find out what causes these exceptions?
I should notice that I see them only in the cluster, and not among the workers, which makes me suspect that they have something to do with how the cluster modules do their magic in distributing connections with workers.
Matt zukowski
source share