diff options
| author | Igor Sysoev <igor@sysoev.ru> | 2007-09-22 18:59:05 +0000 |
|---|---|---|
| committer | Igor Sysoev <igor@sysoev.ru> | 2007-09-22 18:59:05 +0000 |
| commit | 5963fbae8ee06329e347d5fe113c649ed1aa179e (patch) | |
| tree | cd3d315176a7419c8a762cd9fa07e69f0a584cda /src/http/ngx_http_core_module.c | |
| parent | a3f8dc8c7fe6f75046431b86fd927627f92c6f4e (diff) | |
| download | nginx-5963fbae8ee06329e347d5fe113c649ed1aa179e.tar.gz nginx-5963fbae8ee06329e347d5fe113c649ed1aa179e.tar.bz2 | |
r1378 merge:
set default listen() backlog to 511 on all platforms except FreeBSD
Diffstat (limited to 'src/http/ngx_http_core_module.c')
| -rw-r--r-- | src/http/ngx_http_core_module.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c index 696c10b34..b2b0f3bca 100644 --- a/src/http/ngx_http_core_module.c +++ b/src/http/ngx_http_core_module.c @@ -2226,7 +2226,7 @@ ngx_http_core_merge_srv_conf(ngx_conf_t *cf, void *parent, void *child) #endif ls->family = AF_INET; - ls->conf.backlog = -1; + ls->conf.backlog = NGX_LISTEN_BACKLOG; ls->conf.rcvbuf = -1; ls->conf.sndbuf = -1; } @@ -2577,7 +2577,7 @@ ngx_http_core_listen(ngx_conf_t *cf, ngx_command_t *cmd, void *conf) 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; |
