Skip to content

Commit 86790f3

Browse files
committed
Cancel HTTP health check scheduler when IdleTimeoutHandler is removed from pipeline
Signed-off-by: raccoonback <[email protected]>
1 parent 072f25e commit 86790f3

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

reactor-netty-http/src/main/java/reactor/netty/http/IdleTimeoutHandler.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -84,6 +84,13 @@ public void channelInactive(ChannelHandlerContext ctx) throws Exception {
8484
super.channelInactive(ctx);
8585
}
8686

87+
@Override
88+
public void handlerRemoved(ChannelHandlerContext ctx) throws Exception {
89+
httpConnectionLiveness.cancel();
90+
91+
super.handlerRemoved(ctx);
92+
}
93+
8794
/**
8895
* Adds an idle timeout handler to the server pipeline.
8996
*

0 commit comments

Comments
 (0)