Skip to content

Commit

Permalink
Logs action of closing an idle connection after timeout expires. (#9239)
Browse files Browse the repository at this point in the history
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
  • Loading branch information
spericas authored Sep 4, 2024
1 parent df2c26e commit efa5a77
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -229,6 +229,7 @@ public void initChannel(SocketChannel ch) {
@Override
public void userEventTriggered(ChannelHandlerContext ctx, Object evt) {
if (evt instanceof IdleStateEvent) {
LOGGER.finer(() -> log("Closing idle connection on channel", ctx.channel()));
ctx.close(); // async close of idle connection
}
}
Expand Down

0 comments on commit efa5a77

Please sign in to comment.