未验证 提交 83dda59d 编写于 作者: D dapan1121 提交者: GitHub

Merge pull request #19957 from taosdata/fix/fixTransOpt

fix: change socket opt
......@@ -1078,7 +1078,7 @@ int32_t taosCreateSocketWithTimeout(uint32_t timeout) {
// return -1;
//}
#else // Linux like systems
uint32_t conn_timeout_ms = timeout * 1000;
uint32_t conn_timeout_ms = timeout;
if (0 != setsockopt(fd, IPPROTO_TCP, TCP_USER_TIMEOUT, (char *)&conn_timeout_ms, sizeof(conn_timeout_ms))) {
taosCloseSocketNoCheck1(fd);
return -1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册