Skip to content

FrankenPHP Octane Cannot Update "Max Execution Time" #657

@luchtech

Description

@luchtech

Steps To Reproduce

  1. Create a new Laravel app with just the FrankenPHP + PHP 8.5 + Octane + SQLite setup.
  2. 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"
  1. 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.
  2. Run spin up -d to start the app.
  3. 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'
    ]);
});
  1. Open any browser and open this URL: https://laravel.dev.test/api/31-seconds
  2. You should see this error:
Image

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

Metadata

Metadata

Assignees

Labels

🧐 Bug: Needs ConfirmationSomething isn't working, but needs to be confirmed by a team member.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions