title: Blocking on http request/response callback?
body: <p>I'm more or less a node newbie and having a bit of difficulty understanding the the asynchronism aspect of the request / response callback for the <code>http.createServer</code> method.</p>
  
  <p>My understanding was that when a new request is made the anonymouse function would run again for the new client.</p>
  
  <p>However in my testing I've found that the blocking process <em>looks like</em> it effects the response for another requesting client.</p>
  
  <p>I say this because the log message <code>"A new client!"</code> only apears after the first request has finished.</p>
  
  <pre><code>var http = require('http');
  
  http.createServer(function(req, res){
  
    console.log("A new client!");      
  
    var startTime = new Date().getTime();
    while (new Date().getTime() &lt; startTime + 4000);
  
    res.writeHead(200, {"Content-type" : "text/html"});
    res.write("done");
    res.end();
  
  }).listen("8888");
  </code></pre>
  
  <p>I am testing on <code>localhost:8888</code> with multiple tabs in my browser.</p>