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

Close connection? #100

Open
pluk77 opened this issue Sep 25, 2024 · 1 comment
Open

Close connection? #100

pluk77 opened this issue Sep 25, 2024 · 1 comment

Comments

@pluk77
Copy link

pluk77 commented Sep 25, 2024

We seem to be having issues where Redis or php is not closing the connections causing Apache to hang in a wait state.

There seems to be no class to Redis->close() at the moment, so I assume the bundle relies on the connection being terminated automatically.

Is there a way to close the connection of the storage adapter via the shutdown function in the kernel, which calls the shutdown function in all bundles?

Is there a way to access the CollectorRegistry from within ArtprimaPrometheusMetricsBundle::class?

@Johnmeurt
Copy link
Contributor

Johnmeurt commented Sep 25, 2024

Hello,

I supposed you have php in cgi module for apache. I did not observe this on fpm.
But you are right, the bundle should close connection in its shutdown method. I am not sure of how to do this because the Adapter is private and it seems to me it is the only one that can do the close.

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

No branches or pull requests

2 participants