summaryrefslogtreecommitdiffstats
path: root/common
diff options
context:
space:
mode:
authorGravatar Nikias Bassen2020-05-28 18:23:40 +0200
committerGravatar Nikias Bassen2020-05-28 18:23:40 +0200
commit839d9cbcfe35d367638135c486fb119556098e19 (patch)
treeb91687a1ea2455280184f5b9358611cc3efca983 /common
parent910166b3d67652abb54dece7e1cacdc9dcfdb659 (diff)
downloadlibusbmuxd-839d9cbcfe35d367638135c486fb119556098e19.tar.gz
libusbmuxd-839d9cbcfe35d367638135c486fb119556098e19.tar.bz2
socket: Increase listen socket backlog queue length
Diffstat (limited to 'common')
-rw-r--r--common/socket.c4
1 files changed, 2 insertions, 2 deletions
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 @@ int socket_create_unix(const char *filename)
return -1;
}
- if (listen(sock, 10) < 0) {
+ if (listen(sock, 100) < 0) {
perror("listen");
socket_close(sock);
return -1;
@@ -366,7 +366,7 @@ int socket_create(const char* addr, uint16_t port)
return -1;
}
- if (listen(sfd, 1) < 0) {
+ if (listen(sfd, 100) < 0) {
perror("listen()");
socket_close(sfd);
return -1;