Skip to content

Commit e15ca51

Browse files
committed
Update HttpResources cleaning for Reactor Netty
This commit updates the workaround for issue gh-9146
1 parent dd79143 commit e15ca51

File tree

1 file changed

+2
-3
lines changed
  • spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty

1 file changed

+2
-3
lines changed

Diff for: spring-boot-project/spring-boot/src/main/java/org/springframework/boot/web/embedded/netty/NettyWebServer.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -115,15 +115,14 @@ public void run() {
115115
@Override
116116
public void stop() throws WebServerException {
117117
if (this.disposableServer != null) {
118-
// temporary fix for gh-9146
119-
this.disposableServer.onDispose()
120-
.doFinally((signal) -> HttpResources.reset());
121118
if (this.lifecycleTimeout != null) {
122119
this.disposableServer.disposeNow(this.lifecycleTimeout);
123120
}
124121
else {
125122
this.disposableServer.disposeNow();
126123
}
124+
// temporary fix for gh-9146
125+
HttpResources.shutdown();
127126
this.disposableServer = null;
128127
}
129128
}

0 commit comments

Comments
 (0)