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

PushAsyncService start an HTTP client but provides no way to shut it down, leaving threads running #198

Open
gregopet opened this issue Oct 15, 2022 · 0 comments

Comments

@gregopet
Copy link

When I create an instance of PushAsyncService, it automatically creates an AsyncHttpClient instance upon initialization. The client spawns some threads that prevent my whole application from shutting down (e.g. if a fatal configuration error was encountered).

If there was a close() or stop() method to call I would do so, but there is none and httpClient is private so I cannot access it (at least without resorting to reflection). If I "cheat" and call close() on the private httpClient, the app proceeds to shut down normally.

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

1 participant