From cb66f546fb2438661d8a8e854f9bb68bf39e4f34 Mon Sep 17 00:00:00 2001
From: puzhibing <393733352@qq.com>
Date: 星期四, 20 七月 2023 15:08:48 +0800
Subject: [PATCH] 修改url特殊字符编码问题

---
 zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java |    8 ++++++++
 1 files changed, 8 insertions(+), 0 deletions(-)

diff --git a/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java b/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
index b27fd8f..876752c 100644
--- a/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
+++ b/zuul/src/main/java/com/sinata/zuul/util/echo/NettyChannelMap.java
@@ -78,6 +78,9 @@
 	 */
 	@SuppressWarnings("rawtypes")
 	public static synchronized void remove(ChannelHandlerContext value) {
+		if(null == value){
+			return;
+		}
 		Set<String> strings = map.keySet();
 		for(String key : strings){
 			ChannelHandlerContext channelHandlerContext = map.get(key);
@@ -104,6 +107,11 @@
 		}
 	}
 
+
+	public static synchronized void remove_(String key) {
+		ctxMap.remove(key);
+	}
+
 	
 	/**
 	 * Remove the data resources.

--
Gitblit v1.7.1