This commit is contained in:
Lemon
2023-11-12 09:40:24 +08:00
2 changed files with 3 additions and 5 deletions

View File

@@ -179,8 +179,8 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
log.error("Client-IP:【{}】, channelId:【{}】, pileSn:【{}】, ALL_IDLE 总超时", socketString, channelId, pileSn);
}
if (flag) {
ctx.channel().close();
close(channelId, pileSn);
// ctx.channel().close();
// close(channelId, pileSn);
}
}
}
@@ -203,7 +203,7 @@ public class NettyServerHandler extends ChannelInboundHandlerAdapter {
log.error("【{}】发生了错误, pileSn:【{}】此连接被关闭, 此时连通数量: {}", channelId, pileSn, CHANNEL_MAP.size());
ctx.channel().close();
}
close(channelId, pileSn);
// close(channelId, pileSn);
}
private void close(ChannelId channelId, String pileSn) {

View File

@@ -580,8 +580,6 @@ public class PileConnectorInfoServiceImpl implements IPileConnectorInfoService {
deleteRedisByPileSn(pileSn);
redisCache.setCacheObject(redisKey, status, CacheConstants.cache_expire_time_3m);
// TODO 推送联联平台 设备状态变化推送接口 ConnectorStatusInfo
// 异步放缓存
CompletableFuture.runAsync(() -> statusChange(pileConnectorCode));
}