From b3afb6f745d34c958b64cb0a3b9655b3a4521248 Mon Sep 17 00:00:00 2001 From: Alex Gidman Date: Fri, 21 Jul 2023 09:50:02 +0100 Subject: [PATCH] fix: OF-2559 - rename clientConnection boolean as isClientConnection for clarity. --- .../org/jivesoftware/openfire/spi/NettyServerInitializer.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {