aboutsummaryrefslogtreecommitdiff
path: root/src/core/ngx_connection.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-08-09 13:32:21 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-08-09 13:32:21 +0000
commit031a6e2906592b4f5bfa6f21eb2fe2d49478139c (patch)
tree67e14f14f15a761e0c4112b46886100ae07735d0 /src/core/ngx_connection.c
parent3625a458d9a29943aa7891296ef2dd3e9933f9a8 (diff)
downloadnginx-031a6e2906592b4f5bfa6f21eb2fe2d49478139c.tar.gz
nginx-031a6e2906592b4f5bfa6f21eb2fe2d49478139c.zip
set default listen() backlog to 511 on all platforms except FreeBSD
Diffstat (limited to 'src/core/ngx_connection.c')
-rw-r--r--src/core/ngx_connection.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/core/ngx_connection.c b/src/core/ngx_connection.c
index 9d22ac60b..87219f236 100644
--- a/src/core/ngx_connection.c
+++ b/src/core/ngx_connection.c
@@ -123,7 +123,7 @@ ngx_set_inherited_sockets(ngx_cycle_t *cycle)
ntohs(sin->sin_port))
- ls[i].addr_text.data;
- ls[i].backlog = -1;
+ ls[i].backlog = NGX_LISTEN_BACKLOG;
olen = sizeof(int);