1、修改TCP推送的问题

This commit is contained in:
weidong 2024-01-31 10:42:28 +08:00
parent 3a7350f0f7
commit b47f9a377e

View File

@ -85,7 +85,12 @@ public class GXXfzForwarder extends Forwarder{
String json = "#" + GsonUtil.toJson(xfzTcpMessage) + "!";
logger.info("project " + projectId + ": push calculation result to XFZ");
logger.info(json);
xfzTcpClient.writeAndFlush(json);
try {
xfzTcpClient.writeAndFlush(json);
Thread.sleep(1000);
} catch (Exception e1) {
e1.printStackTrace();
}
return sendNum;
}