Skip to content

Commit

Permalink
Logs action of closing an idle connection after timeout expires.
Browse files Browse the repository at this point in the history
Signed-off-by: Santiago Pericas-Geertsen <[email protected]>
  • Loading branch information
spericas committed Sep 4, 2024
1 parent df2c26e commit 37a8fa3
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 37a8fa3

Please sign in to comment.