Explorar o código

Merge remote branch 'lmcd/master'

* lmcd/master:
  Added an optimisation for PHP-FPM (FastCGI Process Manager). As soon as a full Response is dispatched to the browser, the HTTP connection is closed, but the script stays alive on FPM servers.
Fabien Potencier %!s(int64=14) %!d(string=hai) anos
pai
achega
09ee01501d
Modificáronse 1 ficheiros con 4 adicións e 0 borrados
  1. 4 0
      src/Symfony/Component/HttpFoundation/Response.php

+ 4 - 0
src/Symfony/Component/HttpFoundation/Response.php

@@ -153,6 +153,10 @@ class Response
     {
         $this->sendHeaders();
         $this->sendContent();
+        
+        if (function_exists('fastcgi_finish_request')) {
+            fastcgi_finish_request();
+        }
     }
 
     /**