comparison src/os/unix/ngx_freebsd_init.c @ 18:6f8b0dc0f8dd NGINX_0_1_9

nginx 0.1.9 *) 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; bug appeared in 0.1.8.
author Igor Sysoev <http://sysoev.ru>
date Thu, 25 Nov 2004 00:00:00 +0300
parents 46833bd150cb
children 8b6db3bda591
comparison
equal deleted inserted replaced
17:9acb68bb0698 18:6f8b0dc0f8dd
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 }