Mercurial > hg > nginx
diff src/http/ngx_http_core_module.c @ 1377:0d57c150115b
set default listen() backlog to 511 on all platforms except FreeBSD
author | Igor Sysoev <igor@sysoev.ru> |
---|---|
date | Thu, 09 Aug 2007 13:32:21 +0000 |
parents | 7443fbe0b013 |
children | 3c6da0610f19 |
line wrap: on
line diff
--- a/src/http/ngx_http_core_module.c Tue Aug 07 12:34:20 2007 +0000 +++ b/src/http/ngx_http_core_module.c Thu Aug 09 13:32:21 2007 +0000 @@ -2219,7 +2219,7 @@ #endif ls->family = AF_INET; - ls->conf.backlog = -1; + ls->conf.backlog = NGX_LISTEN_BACKLOG; ls->conf.rcvbuf = -1; ls->conf.sndbuf = -1; } @@ -2570,7 +2570,7 @@ ls->port = u.port; ls->file_name = cf->conf_file->file.name; ls->line = cf->conf_file->line; - ls->conf.backlog = -1; + ls->conf.backlog = NGX_LISTEN_BACKLOG; ls->conf.rcvbuf = -1; ls->conf.sndbuf = -1;