Merge pull request #2795 from taosdata/feature/syncFC

set socket option
This commit is contained in:
Shengliang Guan 2020-07-29 13:29:30 +08:00 committed by GitHub
commit 416564a35e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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;
}