Bump TCP connection backlog from 5 to 32.

This commit is contained in:
Simon Kelley
2016-12-22 22:16:58 +00:00
parent a1d973f987
commit 09b768efa4
3 changed files with 7 additions and 1 deletions

View File

@@ -746,7 +746,7 @@ static int make_sock(union mysockaddr *addr, int type, int dienow)
if (type == SOCK_STREAM)
{
if (listen(fd, 5) == -1)
if (listen(fd, TCP_BACKLOG) == -1)
goto err;
}
else if (family == AF_INET)