From abcb19ee0cf2659981516133a1a9e7b163f529ce Mon Sep 17 00:00:00 2001
From: zhang <zc857179121@qq.com>
Date: 星期六, 24 一月 2026 08:21:14 +0800
Subject: [PATCH] 1

---
 zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java b/zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java
index 48a6186..a0e0abe 100644
--- a/zy-acs-gateway/src/main/java/com/zy/acs/gateway/handler/ProtectorHandler.java
+++ b/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());

--
Gitblit v1.9.1