Merge pull request #2795 from taosdata/feature/syncFC
set socket option
This commit is contained in:
commit
416564a35e
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue