commit | 839d9cbcfe35d367638135c486fb119556098e19 | [log] [tgz] |
---|---|---|
author | Nikias Bassen <nikias@gmx.li> | Thu May 28 18:23:40 2020 +0200 |
committer | Nikias Bassen <nikias@gmx.li> | Thu May 28 18:23:40 2020 +0200 |
tree | b91687a1ea2455280184f5b9358611cc3efca983 | |
parent | 910166b3d67652abb54dece7e1cacdc9dcfdb659 [diff] |
socket: Increase listen socket backlog queue length
diff --git a/common/socket.c b/common/socket.c index 1c38965..7677b1d 100644 --- a/common/socket.c +++ b/common/socket.c
@@ -157,7 +157,7 @@ return -1; } - if (listen(sock, 10) < 0) { + if (listen(sock, 100) < 0) { perror("listen"); socket_close(sock); return -1; @@ -366,7 +366,7 @@ return -1; } - if (listen(sfd, 1) < 0) { + if (listen(sfd, 100) < 0) { perror("listen()"); socket_close(sfd); return -1;