From: phk Date: Fri, 18 Aug 2006 16:04:42 +0000 (+0000) Subject: Deeper listenqueue for HTTP sockets X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=8785d94fd5059629c00ef7d153faa39f5e6cb11a;p=varnish Deeper listenqueue for HTTP sockets git-svn-id: svn+ssh://projects.linpro.no/svn/varnish/trunk@827 d4fa192b-c00b-0410-8231-f00ffab90ce4 --- diff --git a/varnish-cache/bin/varnishd/tcp.c b/varnish-cache/bin/varnishd/tcp.c index 5e489734..e259fa2e 100644 --- a/varnish-cache/bin/varnishd/tcp.c +++ b/varnish-cache/bin/varnishd/tcp.c @@ -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);