Commit 78f75440a0edfac88f0e648f6e44426d5e895b0c

Authored by Igor Kulikov
1 parent 676aa3fe

MqttTransportHandler: Use default channelReadComplete implementation to avoid memory leaks.

@@ -422,11 +422,6 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement @@ -422,11 +422,6 @@ public class MqttTransportHandler extends ChannelInboundHandlerAdapter implement
422 } 422 }
423 423
424 @Override 424 @Override
425 - public void channelReadComplete(ChannelHandlerContext ctx) {  
426 - ctx.flush();  
427 - }  
428 -  
429 - @Override  
430 public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) { 425 public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
431 log.error("[{}] Unexpected Exception", sessionId, cause); 426 log.error("[{}] Unexpected Exception", sessionId, cause);
432 ctx.close(); 427 ctx.close();