-
Notifications
You must be signed in to change notification settings - Fork 810
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
AspNetCore.HealthChecks.Rabbitmq leaks connections when using the factory #2364
Comments
I actually read the readme and now its clear. but I was just updating from one version to the next and was not expecting that a parameter called factory was supposed to provide a cached singleton. |
FYI my solution for the time beeing: services.AddSingleton<Lazy<Task>>(c => services.AddHealthChecks() that way I still have access to the service provider while creating the connection (I use it to resolve configuration) |
Why do you register a cc @eerhardt |
I guess its not needed then. |
This is a really fucked up way to setup a so called FACTORY!!! for health check. Wasted my whole day on finding the source of resource leakage. It looks more like an unintentional bug now being disguised as an intentional clever design. Please do fix this atrocity. That setup guide in the readme offers no help either.
Wouldn't it be easier to add a |
What happened:
when using
the healthcheck does not close the connection causing a massive ammount of connections to be opened
What you expected to happen:
either one of these:
Version 8.0.2 was working fine Version 9.0.0 contains the issue.
propably this change: #2343
The text was updated successfully, but these errors were encountered: