【fix】 bug fix

This commit is contained in:
wujiawei
2025-04-06 22:43:01 +08:00
parent 532d05d4a8
commit 9c5000f995
3 changed files with 5 additions and 6 deletions

View File

@ -61,7 +61,7 @@ public class ServerHandleHttpReportClientProxyClientConnectTransferTypeAdvanced
// 让客户端主动创建一个数据传输通道
loadBalance.writeAndFlush(clientConnectTagetNettyProxyMsg);
}else {
log.error("can not find the client:【】 channel",clientId);
log.error("can not find target client:【】 channel",clientId);
}
}

View File

@ -38,9 +38,10 @@ public class ServerHandleHttpReportClientProxyClientTransferResponseTypeAdvanced
// 将返回数据下发客户端
Channel transferNextChannel = ChannelAttributeKeyUtils.getTransferNextChannel(transferChannel);
if(ObjectUtils.isNotEmpty(nettyProxyMsg)) {
if(ObjectUtils.isNotEmpty(transferNextChannel)) {
transferNextChannel.writeAndFlush(nettyProxyMsg);
}else {
log.error("无法将数据下发给原始客户端");
}
}