title: How to debug a socket hang up error in NodeJS?
body: <p>I am getting the following error:</p>
  
  <pre><code>events.js:48
          throw arguments[1]; // Unhandled 'error' event
          ^
  Error: socket hang up
      at createHangUpError (http.js:1091:15)
      at Socket.onend (http.js:1154:27)
      at TCP.onread (net.js:363:26)
  </code></pre>
  
  <p>In node v0.6.6, my code has multiple http.request and .get calls.
  Please suggest ways to track what causes the socket hang up, and on which request/call it is.
  Thank you</p>