]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
tcp: change listen backlog from 1 to 511 (like apache default), fixes #4152
authorJaroslav Kysela <perex@perex.cz>
Fri, 30 Dec 2016 16:06:36 +0000 (17:06 +0100)
committerJaroslav Kysela <perex@perex.cz>
Fri, 30 Dec 2016 16:06:48 +0000 (17:06 +0100)
src/tcp.c

index 18ed17c25f99841a04003eef2b84315a2968d200..11faad99dd9214171408d9f7ca23e4a1e034d381 100644 (file)
--- a/src/tcp.c
+++ b/src/tcp.c
@@ -701,7 +701,7 @@ tcp_server_create
     return NULL;
   }
 
-  listen(fd, 1);
+  listen(fd, 511);
 
   ts = malloc(sizeof(tcp_server_t));
   ts->serverfd = fd;