Pārlūkot izejas kodu

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 14 gadi atpakaļ
vecāks
revīzija
09ee01501d
1 mainītis faili ar 4 papildinājumiem un 0 dzēšanām
  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();
+        }
     }
 
     /**