set socket option

This commit is contained in:
Jeff Tao 2020-07-29 05:24:34 +00:00
parent a2764ed351
commit a78c6232f9
1 changed files with 2 additions and 2 deletions

View File

@ -304,10 +304,10 @@ 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));
close(sockFd);
sockFd = -1;
} else {
taosKeepTcpAlive(sockFd);
}
taosKeepTcpAlive(sockFd);
return sockFd;
}