Skip to content

Make it easier to tidy up the resources used by a WebClient [SPR-16963] #21501

Closed
@spring-projects-issues

Description

@spring-projects-issues

Andy Wilkinson opened SPR-16963 and commented

It's really easy to create a WebClient using its builder but this can trigger the creation of a number of threads that can't then be cleaned up when the client's no longer needed.

I'd like to keep the easy creation but also be able to close it so that I'm left with the same number of threads running as there were before the client was created. If WebClient is to replace RestTemplate, I think this'll be of increased importance as people may want to use it as a library outside of an application context.


Affects: 5.0.7

Issue Links:

Referenced from: commits 7a0c03e, 1bc08c6

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)type: enhancementA general enhancement

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions