]> err.no Git - varnish/commitdiff
Deeper listenqueue for HTTP sockets
authorphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 18 Aug 2006 16:04:42 +0000 (16:04 +0000)
committerphk <phk@d4fa192b-c00b-0410-8231-f00ffab90ce4>
Fri, 18 Aug 2006 16:04:42 +0000 (16:04 +0000)
git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@827 d4fa192b-c00b-0410-8231-f00ffab90ce4

varnish-cache/bin/varnishd/tcp.c

index 5e489734c0140bb485639c85ebf67196961f880c..e259fa2e18bc2bea33373303304e4a4dc32ef11b 100644 (file)
@@ -129,7 +129,7 @@ open_tcp(const char *port, int http)
                close(sd);
                return (-1);
        }
-       if (listen(sd, 16) != 0) {
+       if (listen(sd, http ? 1024 : 16) != 0) {
                perror("listen()");
                freeaddrinfo(res);
                close(sd);