Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7277

Make ClientProxyImpl reset client state after a call

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.1.10
    • Fix Version/s: 3.1.11, 3.2.0
    • Component/s: JAX-RS
    • Labels:
      None
    • Estimated Complexity:
      Moderate

      Description

      It would be nice to call getState().reset() in ClientProxyImpl.invoke() final block. My use case is JAXRSClientFactoryBean in thread-local configuration, which combined with big thread pool can cause a kind of memory leak. I never need to access the state after I get result from the proxy, but if you think somebody may need, let's make it configurable.

      There is "timeToKeepState" of course, but it's far from ideal because response objects still cannot be garbage collected immediately and there's small added overhead of having all that extra threads.

        Attachments

          Activity

            People

            • Assignee:
              sergey_beryozkin Sergey Beryozkin
              Reporter:
              lightoze Vladimir Kulev
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: