-
Notifications
You must be signed in to change notification settings - Fork 12.9k
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
[feature] When the nacos-server fails to start, shutdown all http clients #3832
Comments
Considering that when the server fails to start, it usually stops the current service and restarts it. Currently, the http client uses |
Because there is a shared http client implementation, it is still necessary to supplement the shared http client shutdown. |
Has this issue completed? If so, close it. |
Resolved |
Is your feature request related to a problem? Please describe.
When nacos-server fails to start, the http client should be shut down to release related resources.
Describe the solution you'd like
Add the
shutdown
all http client method inHttpClientBeanHolder
.Call
HttpClientBeanHolder#shutdown
in theStartingSpringApplicationRunListener#failed
method to shut down all http clients.Describe alternatives you've considered
Additional context
The text was updated successfully, but these errors were encountered: