Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[HttpKernel] Reset services between requests performed by KernelBrowser #45479

Merged
merged 1 commit into from Feb 19, 2022

Conversation

nicolas-grekas
Copy link
Member

@nicolas-grekas nicolas-grekas commented Feb 18, 2022

Q A
Branch? 4.4
Bug fix? yes
New feature? no
Deprecations? no
Tickets Fix #40965
License MIT
Doc PR -

This fixes memory leaks caused by the container not being reset between requests made via KernelBrowser when not calling KernelBrowser::disableReboot();.

There is already a call to $container->reset() in KernelTestCase::ensureKernelShutdown(), but KernelBrowser creates new container instances for each requests, and those containers were never reset.

fabpot
fabpot approved these changes Feb 19, 2022
@fabpot
Copy link
Member

@fabpot fabpot commented Feb 19, 2022

Thank you @nicolas-grekas.

@fabpot fabpot merged commit a3bceff into symfony:4.4 Feb 19, 2022
10 checks passed
@fabpot fabpot mentioned this pull request Feb 28, 2022
@fabpot fabpot mentioned this pull request Feb 28, 2022
@fabpot fabpot mentioned this pull request Feb 28, 2022
@nicolas-grekas nicolas-grekas deleted the hk-browser-reset branch Feb 28, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Linked issues

Successfully merging this pull request may close these issues.

None yet

4 participants