Steps To Reproduce
- Create a new Laravel app with just the FrankenPHP + PHP 8.5 + Octane + SQLite setup.
- Add these to the
docker-compose.dev.yml specifically on the php service.
environment:
PHP_POST_MAX_SIZE: "1024M"
PHP_UPLOAD_MAX_FILE_SIZE: "1024M"
PHP_MAX_EXECUTION_TIME: "900"
REQUEST_MAX_EXECUTION_TIME: "900"
- As you can see, the execution time should be set to 900. Expectation would be it will timeout after 15 minutes. You can lower this value to 3 minutes if you want.
- Run
spin up -d to start the app.
- Run
artisan install:api to add the routes/api.php file. Then add a route like so:
// Added a 31-second sleep to test if the 30s default is changed.
Route::get('31-seconds', function () {
sleep(31);
return response()->json([
'message' => 'Hello World'
]);
});
- Open any browser and open this URL: https://laravel.dev.test/api/31-seconds
- You should see this error:
Outcome
What did you expect?
It should override the 30s default max timeout.
What happened instead?
It's not overriding the max timeout.
Affected Docker Images
FrankenPHP variants probably
Anything else?
No response
Steps To Reproduce
docker-compose.dev.ymlspecifically on thephpservice.spin up -dto start the app.artisan install:apito add theroutes/api.phpfile. Then add a route like so:Outcome
What did you expect?
It should override the 30s default max timeout.
What happened instead?
It's not overriding the max timeout.
Affected Docker Images
FrankenPHP variants probably
Anything else?
No response