1
zhang
昨天 abcb19ee0cf2659981516133a1a9e7b163f529ce
zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java
@@ -6,6 +6,7 @@
import com.zy.acs.gateway.domain.AgvPackage;
import io.netty.channel.ChannelHandler;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.DecoderException;
import io.netty.handler.timeout.IdleState;
import io.netty.handler.timeout.IdleStateEvent;
import io.netty.util.ReferenceCountUtil;
@@ -48,7 +49,7 @@
    @Override
    public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
        log.error("ProtectorHandler exceptionCaught", cause);
        if (cause instanceof IndexOutOfBoundsException) {
        if (cause instanceof IndexOutOfBoundsException || cause instanceof DecoderException) {
            log.error("Received malformed data, waiting for more input......");
        } else {
            ChannelCache.removeChannel(ctx.channel());