#
luxiaotao1123
19 小时以前 55a2747e6cbf2cecb600191a2d91175ab5b4ec92
#
1个文件已修改
3 ■■■■ 已修改文件
zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java 3 ●●●● 补丁 | 查看 | 原始文档 | blame | 历史
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());