Update HttpResources cleaning for Reactor Netty

This commit updates the workaround for issue gh-9146
pull/13870/merge
Brian Clozel 6 years ago
parent dd79143d1a
commit e15ca514c8

@ -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;
}
}

Loading…
Cancel
Save