title: Debugging stray uncaught exceptions (ECONNRESET) in a node cluster
body: <p>In my node.js app which uses the cluster module, I'm intermittently seeing errors like this:</p>
  
  <pre><code>events.js:71
          throw er; // Unhandled 'error' event
                ^
  Error: read ECONNRESET
      at errnoException (net.js:863:11)
      at TCP.onread (net.js:524:19)
  </code></pre>
  
  <p>This brings down my whole app, and so far the only way I've been able to deal with these is by binding a <code>process.on('uncaughtException')</code>. I'd like to figure out the underlying cause, but the above stack trace is pretty useless.</p>
  
  <p>Is there some way to figure out what's causing these exceptions?</p>
  
  <p>I should note that I'm seeing these only in the cluster master, not the workers, which leads me to suspect that they have something to do with the way the cluster modules does its magic in distributing connections to workers.</p>