mirror of
https://github.com/nextcloud/server.git
synced 2026-06-14 19:20:35 -04:00
fix: Improve detection of frankenphp worker mode
Signed-off-by: Carl Schwan <carlschwan@kde.org>
This commit is contained in:
parent
774420a188
commit
2933ddd31d
1 changed files with 1 additions and 1 deletions
|
|
@ -130,7 +130,7 @@ $handler = static function () {
|
|||
}
|
||||
};
|
||||
|
||||
if (function_exists('frankenphp_handle_request')) {
|
||||
if (function_exists('frankenphp_handle_request') && isset($_SERVER['FRANKENPHP_WORKER']) && $_SERVER['FRANKENPHP_WORKER'] === '1') {
|
||||
$maxRequests = (int)($_SERVER['MAX_REQUESTS'] ?? 0);
|
||||
for ($nbRequests = 0; !$maxRequests || $nbRequests < $maxRequests; ++$nbRequests) {
|
||||
$keepRunning = \frankenphp_handle_request($handler);
|
||||
|
|
|
|||
Loading…
Reference in a new issue