mirror of
https://gitee.com/wujiawei1207537021/wu-lazy-cloud-network.git
synced 2025-06-16 18:35:05 +08:00
【fix】 bug fix
This commit is contained in:
@ -3,10 +3,7 @@ package org.framework.lazy.cloud.network.heartbeat.server.netty.proxy.http.advan
|
||||
|
||||
import io.netty.channel.Channel;
|
||||
import lombok.extern.slf4j.Slf4j;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.ChannelContext;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.NettyByteBuf;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.NettyProxyMsg;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.NettyTransferChannelContext;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.advanced.proxy.http.server.AbstractHandleHttpReportClientProxyClientTransferResponseTypeAdvanced;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.constant.TcpMessageType;
|
||||
import org.framework.lazy.cloud.network.heartbeat.common.utils.ChannelAttributeKeyUtils;
|
||||
@ -39,7 +36,10 @@ public class ServerHandleHttpReportClientProxyClientTransferResponseTypeAdvanced
|
||||
Channel transferNextChannel = ChannelAttributeKeyUtils.getTransferNextChannel(transferChannel);
|
||||
|
||||
if(ObjectUtils.isNotEmpty(transferNextChannel)) {
|
||||
transferNextChannel.writeAndFlush(nettyProxyMsg);
|
||||
NettyProxyMsg responseProxyMsg = new NettyProxyMsg();
|
||||
responseProxyMsg.setData(nettyProxyMsg.getData());
|
||||
responseProxyMsg.setType(TcpMessageType.HTTP_DISTRIBUTE_CLIENT_PROXY_CLIENT_TRANSFER_RESPONSE_);
|
||||
transferNextChannel.writeAndFlush(responseProxyMsg);
|
||||
}else {
|
||||
log.error("无法将数据下发给原始客户端");
|
||||
}
|
||||
|
Reference in New Issue
Block a user