We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2094323 commit 330aa70Copy full SHA for 330aa70
spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyWebServer.java
@@ -20,6 +20,7 @@
20
21
import org.apache.commons.logging.Log;
22
import org.apache.commons.logging.LogFactory;
23
+import reactor.ipc.netty.http.HttpResources;
24
import reactor.ipc.netty.http.server.HttpServer;
25
import reactor.ipc.netty.tcp.BlockingNettyContext;
26
@@ -98,6 +99,8 @@ public void run() {
98
99
public void stop() throws WebServerException {
100
if (this.nettyContext != null) {
101
this.nettyContext.shutdown();
102
+ // temporary fix for gh-9146
103
+ this.nettyContext.getContext().onClose().doOnSuccess(aVoid -> HttpResources.reset()).block();
104
this.nettyContext = null;
105
}
106
0 commit comments