Thanks to visit codestin.com
Credit goes to github.com

Skip to content

[feature] When the nacos-server fails to start, shutdown all http clients #3832

@Maijh97

Description

@Maijh97

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

  1. Add the shutdown all http client method in HttpClientBeanHolder.

  2. Call HttpClientBeanHolder#shutdown in the StartingSpringApplicationRunListener#failed method to shut down all http clients.

Describe alternatives you've considered

Additional context

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/enhancementCategory issues or prs related to enhancement.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions