title: fs.writeFile hangs on high load (no error on v.0.6.6)
body: <p>We are trying to serve as much requests as possible, and write one file per request. With small payload works fine, but on high payload scenarios while the synchronous version still working fine, the asynchronous version (fs.writeFile) hangs. Node stops serving requests and leave most of the files with 0-size (most of them neither get created).</p>
  
  <p>There is no error in v0.6.6</p>
  
  <p>In v.0.4.7 we got:</p>
  
  <pre><code>{ stack: [Getter/Setter],
  arguments: undefined,
  type: undefined,
  message: 'EMFILE, Too many open files \'aw_1031\'',
  errno: 24,
  code: 'EMFILE',
  path: 'aw_1031' }
  </code></pre>
  
  <p>Same behaviour in Ubuntu(VM) and Mac Osx.</p>
  
  <p>This is the example script we are currently running with:</p>
  
  <pre><code>ab -n 30000 -c 500 http://HOST:8000/
  </code></pre>
  
  <p>filetest.js</p>
  
  <pre><code>var http = require('http');
  var fs = require('fs');
  var util = require ('util');
  var i=0;
  
  function writeALot(req, res){
      fs.writeFile("filetest"+i, "Just a try: "+i,
          function(err){
              if(err)    console.log(util.inspect(err));
          });
      i++;
      res.writeHead(200);
      res.end();
  }
  http.createServer(writeALot).listen(8000);
  </code></pre>
  
  <p>How can we manage the max number of concurrent fd? Any advice?</p>
  
  <p>Thanks in advance.</p>