From a9e8a91fd4c8c504d7df9ef921f32d832390e77d Mon Sep 17 00:00:00 2001
From: whycq <10027870+whycq@user.noreply.gitee.com>
Date: 星期五, 15 九月 2023 13:42:39 +0800
Subject: [PATCH] Merge remote-tracking branch 'origin/zjfnwcs' into zjfnwcs

---
 src/main/java/com/zy/core/netty/handle/ProtectorHandler.java |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/src/main/java/com/zy/core/netty/handle/ProtectorHandler.java b/src/main/java/com/zy/core/netty/handle/ProtectorHandler.java
index ec0b43c..e48310c 100644
--- a/src/main/java/com/zy/core/netty/handle/ProtectorHandler.java
+++ b/src/main/java/com/zy/core/netty/handle/ProtectorHandler.java
@@ -3,6 +3,7 @@
 import com.core.common.Cools;
 import com.zy.core.netty.AbstractInboundHandler;
 import com.zy.core.netty.cache.ChannelCache;
+import com.zy.core.netty.constant.Constant;
 import com.zy.core.netty.domain.ChPackage;
 import io.netty.channel.ChannelHandler;
 import io.netty.channel.ChannelHandlerContext;
@@ -39,6 +40,7 @@
                 ctx.close();
                 if (!Cools.isEmpty(uuid)){
                     log.info("uuid={} 绌洪棽鍓旈櫎", uuid);
+                    Constant.errorMap.put(Integer.parseInt(uuid), "鏂紑寮傚父");
                 }
             }
         }
@@ -62,8 +64,8 @@
     @Override
     public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
         cause.printStackTrace();
-        ChannelCache.removeChannel(ctx.channel());
-        ctx.close();
+//        ChannelCache.removeChannel(ctx.channel());
+//        ctx.close();
     }
 
 }

--
Gitblit v1.9.1