diff --git a/xmppserver/src/main/java/org/jivesoftware/openfire/spi/NettyServerInitializer.java b/xmppserver/src/main/java/org/jivesoftware/openfire/spi/NettyServerInitializer.java index f8f6d38d1c..c25e45c20d 100644 --- a/xmppserver/src/main/java/org/jivesoftware/openfire/spi/NettyServerInitializer.java +++ b/xmppserver/src/main/java/org/jivesoftware/openfire/spi/NettyServerInitializer.java @@ -45,7 +45,7 @@ public NettyServerInitializer(NettyConnectionHandler businessLogicHandler, boole @Override public void initChannel(SocketChannel ch) throws Exception { - boolean clientConnection = businessLogicHandler instanceof NettyClientConnectionHandler; + boolean isClientConnection = businessLogicHandler instanceof NettyClientConnectionHandler; int maxIdleTimeBeforeClosing = businessLogicHandler.getMaxIdleTime() > -1 ? businessLogicHandler.getMaxIdleTime() : 0; int maxIdleTimeBeforePinging = maxIdleTimeBeforeClosing / 2; @@ -54,7 +54,7 @@ public void initChannel(SocketChannel ch) throws Exception { .addLast(new StringEncoder()) .addLast("stalledSessionHandler", new WriteTimeoutHandler(Math.toIntExact(WRITE_TIMEOUT_SECONDS.getValue().getSeconds()))) .addLast("idleStateHandler", new IdleStateHandler(maxIdleTimeBeforeClosing, maxIdleTimeBeforePinging, 0)) - .addLast("keepAliveHandler", new NettyIdleStateKeepAliveHandler(clientConnection)) + .addLast("keepAliveHandler", new NettyIdleStateKeepAliveHandler(isClientConnection)) .addLast(businessLogicHandler); if (directTLS) {