diff --git a/bin/frankenphp-worker.php b/bin/frankenphp-worker.php index e3a342366..b003f91e4 100644 --- a/bin/frankenphp-worker.php +++ b/bin/frankenphp-worker.php @@ -32,7 +32,7 @@ $worker = null; $requestCount = 0; -$maxRequests = $_ENV['MAX_REQUESTS'] ?? $_SERVER['MAX_REQUESTS']; +$maxRequests = $_ENV['MAX_REQUESTS'] ?? $_SERVER['MAX_REQUESTS'] ?? 1000; $requestMaxExecutionTime = $_ENV['REQUEST_MAX_EXECUTION_TIME'] ?? $_SERVER['REQUEST_MAX_EXECUTION_TIME'] ?? null; if (PHP_OS_FAMILY === 'Linux' && ! is_null($requestMaxExecutionTime)) { diff --git a/src/Commands/stubs/frankenphp-worker.php b/src/Commands/stubs/frankenphp-worker.php index 1ac1c2352..8608d9a83 100755 --- a/src/Commands/stubs/frankenphp-worker.php +++ b/src/Commands/stubs/frankenphp-worker.php @@ -1,3 +1,7 @@