Skip to content

[4.0] Allow fastcgi_finish_request() - #350

Merged
mnapoli merged 1 commit into
4.xfrom
enable-fastcgi-finish-request
Nov 15, 2026
Merged

mnapoli merged 1 commit into
4.xfrom
enable-fastcgi-finish-request

Conversation

@mnapoli

@mnapoli mnapoli commented Nov 13, 2026

Copy link
Copy Markdown
Member

Stop disabling fastcgi_finish_request() in the layers' php.ini.

It was disabled because the script kept running after the response, frozen by Lambda until the next invocation (brefphp/bref#214). bref/bref 4 sends the response, then waits for PHP-FPM to finish the script before the next invocation (brefphp/bref#2273): Laravel and Symfony then run their terminate work (defer(), kernel.terminate…) after the response.

To ship together with brefphp/bref#2273: these layers with an older bref/bref would bring #214 back.

bref/bref 4 waits for PHP-FPM to finish the script before the next invocation (brefphp/bref#2273), so the work after fastcgi_finish_request() no longer runs frozen into the next invocation (brefphp/bref#214).
@mnapoli
mnapoli merged commit f76d75e into 4.x Nov 15, 2026
9 checks passed
@mnapoli
mnapoli deleted the enable-fastcgi-finish-request branch November 15, 2026 22:23
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant