提交 a78c6232 编写于 作者: 陶建辉(Jeff)'s avatar 陶建辉(Jeff)

set socket option

上级 a2764ed3
...@@ -304,9 +304,9 @@ int taosOpenTcpClientSocket(uint32_t destIp, uint16_t destPort, uint32_t clientI ...@@ -304,9 +304,9 @@ int taosOpenTcpClientSocket(uint32_t destIp, uint16_t destPort, uint32_t clientI
//uError("failed to connect socket, ip:0x%x, port:%hu(%s)", destIp, destPort, strerror(errno)); //uError("failed to connect socket, ip:0x%x, port:%hu(%s)", destIp, destPort, strerror(errno));
close(sockFd); close(sockFd);
sockFd = -1; sockFd = -1;
} } else {
taosKeepTcpAlive(sockFd); taosKeepTcpAlive(sockFd);
}
return sockFd; return sockFd;
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册