Skip to content

max_execution_time config doesn't work #470

@smortexa

Description

@smortexa
  • Octane Version: 1.1.1
  • Laravel Version: 8.77.1
  • PHP Version: 8.1.0
  • Server & Version: Swoole 4.8.3

Description:

When the execution time for requests being handled by Octane exceeded from max_execution_time in octane.php config file, the Octane wouldn't send any response and the request remains in the pending state.

Steps To Reproduce:

Set max_execution_time to 2 seconds in octane.php:

// config/octane.php
return [
    'max_execution_time' => 2,
];

and try:

Route::get('/foo', function() {
    sleep(3);
    return 'bar';
});

I know this may be a Swoole bug. So if confirmed, I'll open an issue on the Swoole repo.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions