Merge pull request #7731 from taosdata/enhance/TD-6481
[TD-6481]<enhance> The establishment of TCP connection failed due to …
This commit is contained in:
commit
606455a93d
|
@ -488,7 +488,7 @@ SOCKET taosOpenTcpServerSocket(uint32_t ip, uint16_t port) {
|
|||
return -1;
|
||||
}
|
||||
|
||||
if (listen(sockFd, 10) < 0) {
|
||||
if (listen(sockFd, 1024) < 0) {
|
||||
uError("listen tcp server socket failed, 0x%x:%hu(%s)", ip, port, strerror(errno));
|
||||
taosCloseSocket(sockFd);
|
||||
return -1;
|
||||
|
|
Loading…
Reference in New Issue