title: Node.js throws write EIO exception at random time
body: <p>I'm writing a game server using node.js + socket.io + Winston (logger) and my server dies every day because of this exception:</p>
  
  <pre><code>Error: write EIO
  at errnoException (net.js:901:11)
  at Object.afterWrite (net.js:718:19)
  </code></pre>
  
  <p>I suspect it could be the way I'm using Winston. I have <code>server.js</code> and <code>room.js</code> classes in which I require Winston with this statement : <code>var winston = require('winston');</code>  and in <code>server.js</code> I register the file logging with: </p>
  
  <pre><code>winston.add(winston.transports.File, { filename: 'server.log' });
  winston.handleExceptions(new winston.transports.File({ filename: 'errors.log' }))
  </code></pre>
  
  <p>In <code>room.js</code> I simply call the <code>winston.info()</code> method. </p>
  
  <p>Could it be because of the many <code>room</code> instances or something ?</p>