comparison src/os/unix/ngx_freebsd_init.c @ 469:2ff194b74f1e release-0.1.9

nginx-0.1.9-RELEASE import *) Bugfix: the proxied request was sent without arguments if the request contains "//", "/./", "/../" or "%XX". *) Bugfix: the large compressed responses may be transferred not completely. *) Bugfix: the files bigger than 2G was not transferred on Linux that does not support sendfile64(). *) Bugfix: while the build configuration on Linux the --with-poll_module parameter was required; the bug had appeared in 0.1.8.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 25 Nov 2004 16:17:31 +0000
parents a88a3e4e158f
children 8e8f3af115b5
comparison
equal deleted inserted replaced
468:1a67596d0349 469:2ff194b74f1e
28 28
29 ngx_os_io_t ngx_os_io = { 29 ngx_os_io_t ngx_os_io = {
30 ngx_unix_recv, 30 ngx_unix_recv,
31 ngx_readv_chain, 31 ngx_readv_chain,
32 ngx_unix_send, 32 ngx_unix_send,
33 #if (HAVE_SENDFILE) 33 #if (NGX_HAVE_SENDFILE)
34 ngx_freebsd_sendfile_chain, 34 ngx_freebsd_sendfile_chain,
35 NGX_IO_SENDFILE 35 NGX_IO_SENDFILE
36 #else 36 #else
37 ngx_writev_chain, 37 ngx_writev_chain,
38 0 38 0
126 } 126 }
127 127
128 version = ngx_freebsd_kern_osreldate; 128 version = ngx_freebsd_kern_osreldate;
129 129
130 130
131 #if (HAVE_SENDFILE) 131 #if (NGX_HAVE_SENDFILE)
132 132
133 /* 133 /*
134 * The determination of the sendfile() "nbytes bug" is complex enough. 134 * The determination of the sendfile() "nbytes bug" is complex enough.
135 * There are two sendfile() syscalls: a new #393 has no bug while 135 * There are two sendfile() syscalls: a new #393 has no bug while
136 * an old #336 has the bug in some versions and has not in others. 136 * an old #336 has the bug in some versions and has not in others.
159 159
160 ngx_freebsd_sendfile_nbytes_bug = 1; 160 ngx_freebsd_sendfile_nbytes_bug = 1;
161 161
162 #endif 162 #endif
163 163
164 #endif /* HAVE_SENDFILE */ 164 #endif /* NGX_HAVE_SENDFILE */
165 165
166 166
167 if ((version < 500000 && version >= 440003) || version >= 500017) { 167 if ((version < 500000 && version >= 440003) || version >= 500017) {
168 ngx_freebsd_use_tcp_nopush = 1; 168 ngx_freebsd_use_tcp_nopush = 1;
169 } 169 }