comparison src/os/unix/ngx_posix_config.h @ 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 532d15ddbe68
children 5cd655d5d2fa 2ab8bb66d3d7
comparison
equal deleted inserted replaced
1376:6ff8c0c1e194 1377:0d57c150115b
86 #include <sys/ioctl.h> 86 #include <sys/ioctl.h>
87 #include <sys/devpoll.h> 87 #include <sys/devpoll.h>
88 #endif 88 #endif
89 89
90 90
91 #define NGX_LISTEN_BACKLOG 511
92
93
91 #if (__FreeBSD__) && (__FreeBSD_version < 400017) 94 #if (__FreeBSD__) && (__FreeBSD_version < 400017)
92 95
93 #include <sys/param.h> /* ALIGN() */ 96 #include <sys/param.h> /* ALIGN() */
94 97
95 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */ 98 /* FreeBSD 3.x has no CMSG_SPACE() at all and has the broken CMSG_DATA() */