summaryrefslogtreecommitdiffhomepage
path: root/src/os/unix/ngx_linux_config.h
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-09-22 18:59:05 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-09-22 18:59:05 +0000
commit5963fbae8ee06329e347d5fe113c649ed1aa179e (patch)
treecd3d315176a7419c8a762cd9fa07e69f0a584cda /src/os/unix/ngx_linux_config.h
parenta3f8dc8c7fe6f75046431b86fd927627f92c6f4e (diff)
downloadnginx-5963fbae8ee06329e347d5fe113c649ed1aa179e.tar.gz
nginx-5963fbae8ee06329e347d5fe113c649ed1aa179e.tar.bz2
r1378 merge:
set default listen() backlog to 511 on all platforms except FreeBSD
Diffstat (limited to 'src/os/unix/ngx_linux_config.h')
-rw-r--r--src/os/unix/ngx_linux_config.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/os/unix/ngx_linux_config.h b/src/os/unix/ngx_linux_config.h
index 980e05d67..3e0475ffc 100644
--- a/src/os/unix/ngx_linux_config.h
+++ b/src/os/unix/ngx_linux_config.h
@@ -78,6 +78,9 @@ extern ssize_t sendfile(int s, int fd, int32_t *offset, size_t size);
#endif
+#define NGX_LISTEN_BACKLOG 511
+
+
#if defined TCP_DEFER_ACCEPT && !defined NGX_HAVE_DEFERRED_ACCEPT
#define NGX_HAVE_DEFERRED_ACCEPT 1
#endif