Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16963

Make it easier to tidy up the resources used by a WebClient

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Complete
    • Affects Version/s: 5.0.7
    • Fix Version/s: 5.1 RC2
    • Component/s: Web:Client
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      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.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                rstoya05-aop Rossen Stoyanchev
                Reporter:
                awilkinson Andy Wilkinson
                Last updater:
                Spring Issuemaster
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Days since last comment:
                  1 year, 1 week, 5 days ago