MqttTransportHandler: Use default channelReadComplete implementation to avoid memory leaks.

This commit is contained in:
Igor Kulikov 2019-07-23 17:29:34 +03:00
parent 676aa3febd
commit 78f75440a0

View File

@ -421,11 +421,6 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement
return new MqttConnAckMessage(mqttFixedHeader, mqttConnAckVariableHeader);
}
@Override
public void channelReadComplete(ChannelHandlerContext ctx) {
ctx.flush();
}
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
log.error("[{}] Unexpected Exception", sessionId, cause);