Fixed - PingConnectionHandler throws CancellationException. #3072

pull/3083/head
Nikita Koksharov 4 years ago
parent 9af362b04c
commit f73eea3636

@ -78,7 +78,7 @@ public class PingConnectionHandler extends ChannelInboundHandlerAdapter {
if (future != null
&& (future.cancel(false) || !future.isSuccess())) {
ctx.channel().close();
if (future.cause() != null) {
if (future.cause() != null && !future.isCancelled()) {
log.error("Unable to send PING command over channel: " + ctx.channel(), future.cause());
}
log.debug("channel: {} closed due to PING response timeout set in {} ms", ctx.channel(), config.getPingConnectionInterval());

Loading…
Cancel
Save