[TD-6481]<enhance> The establishment of TCP connection failed due to too high concurrent query

This commit is contained in:
yihaoDeng 2021-08-31 13:38:38 +08:00
parent f61eb53f1b
commit 8f383b6f43
1 changed files with 1 additions and 1 deletions

View File

@ -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;