Update HttpResources cleaning for Reactor Netty
This commit updates the workaround for issue gh-9146
This commit is contained in:
@@ -115,15 +115,14 @@ public class NettyWebServer implements WebServer {
|
||||
@Override
|
||||
public void stop() throws WebServerException {
|
||||
if (this.disposableServer != null) {
|
||||
// temporary fix for gh-9146
|
||||
this.disposableServer.onDispose()
|
||||
.doFinally((signal) -> HttpResources.reset());
|
||||
if (this.lifecycleTimeout != null) {
|
||||
this.disposableServer.disposeNow(this.lifecycleTimeout);
|
||||
}
|
||||
else {
|
||||
this.disposableServer.disposeNow();
|
||||
}
|
||||
// temporary fix for gh-9146
|
||||
HttpResources.shutdown();
|
||||
this.disposableServer = null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user