From 55a2747e6cbf2cecb600191a2d91175ab5b4ec92 Mon Sep 17 00:00:00 2001
From: luxiaotao1123 <t1341870251@gmail.com>
Date: 星期三, 14 一月 2026 09:35:49 +0800
Subject: [PATCH] #

---
 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