title: Asynchronous requests not working using fsock - php - Nginx
body: <p>I have a php script which does the accepted answer described <a href="https://stackoverflow.com/questions/124462/asynchronous-php-calls">here</a>.  </p>
  
  <p>It doesn't work unless I add the following before <code>fclose($fp)</code></p>
  
  <pre><code>while (!feof($fp)) {
          $httpResponse .= fgets($fp, 128);
      }
  </code></pre>
  
  <p>Even a blank for loop would do the job instead of the above!!</p>
  
  <p>But whats the point? I wanted Async calls :(</p>
  
  <p>To add to my pain, the same code is running fine without the above code snippet in an Apache driven environment.</p>
  
  <p>Anybody knows if Nginx or php-fpm having a problem with such requests?</p>