【fix】 bug fix

This commit is contained in:
wujiawei 2025-04-06 22:18:22 +08:00
parent a5a3d7d6f2
commit 402f6f0ac1
2 changed files with 3 additions and 1 deletions

View File

@ -40,6 +40,8 @@ public class ClientHandleDistributeHttpClientProxyClientTransferRequestAdvanced
ByteBuf buf = channel.config().getAllocator().buffer(nettyProxyMsg.getData().length);
buf.writeBytes(nettyProxyMsg.getData());
nextChannel.writeAndFlush(buf);
}else {
log.info("客户端代理到另一个客户端,发送请求到目标客户端但是未找到真实通道");
}
}

View File

@ -39,7 +39,7 @@ public class NettyHttpClientProxyClientTransferRealHandler extends SimpleChannel
String clientId = ChannelAttributeKeyUtils.getClientId(ctx.channel());
String visitorId = ChannelAttributeKeyUtils.getVisitorId(ctx.channel());
Channel nextChannel = ChannelAttributeKeyUtils.getNextChannel(ctx.channel());
log.warn("close client permeate client transfer real clientId:{} visitorId:{}", clientId, visitorId);
log.warn("close client proxy client transfer real clientId:{} visitorId:{}", clientId, visitorId);
// 关闭访客
if (nextChannel != null) {
// 上报关闭这个客户端的访客通道