-
Notifications
You must be signed in to change notification settings - Fork 38.3k
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
WebClient does not clean up underlying resources #23594
Comments
Thanks for the sample. I verified this is not a regression and that the behavior is from the start in 5.1.0. It does clean up but it is triggered asynchronously. I added a 5 second delay and the threads were no longer there. I suppose we could change this to |
|
I don't think you can speed it up. It's how long it takes to shut down. At least in terms of Reactor Netty APIs I don't see anything else we can do from the Spring Framework side. About the @smaldini any idea about the the evictor threads? I see some use of |
@rstoyanchev I'm not using |
I've created reactor/reactor-netty#846 for the elastic evictor threads but I'll leave this open since depending on the fix, we may have a follow-up change. In addition we'll also make an improvement with #23631 to ensure that we wait until threads are stopped. |
Should this be targeted against our 5.2.X milestone? |
after commit ca2b2f5 , |
@quaff please comment under #23631, which is the issue for that commit.
Either way it's a change for Reactor Netty to make to ensure the global elastic scheduler resources aren't used. I only kept this issue open in case their change required us to use a different API. However the change made is transparent for us so this issue can be closed. If it needs to work for 5.1.x (and Reactor Netty 0.8.x) then that change can only come from Reactor Netty. |
I'm trying spring 5.2.0.RC1 and reactor-3.2.11 and reactor-netty-0.8.10, failed to clean up resources.
threads
webflux-http-kqueue-n
andelastic-evictor-1
andelastic-2
are not destroyed.Please run tests in attachment WebClientTest.zip.
The text was updated successfully, but these errors were encountered: