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.
This commit is contained in:
Lee McDermott 2011-06-09 19:11:02 +01:00
parent be95bff7ca
commit 7e89a6ad41

View File

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