comparison src/os/unix/ngx_freebsd_sendfile_chain.c @ 298:30862655219e NGINX_0_5_19

nginx 0.5.19 *) Change: now the $request_time variable has millisecond precision. *) Change: the method $r->rflush of ngx_http_perl_module was renamed to the $r->flush. *) Feature: the $upstream_addr variable. *) Feature: the "proxy_headers_hash_max_size" and "proxy_headers_hash_bucket_size" directives. Thanks to Volodymyr Kostyrko. *) Bugfix: the files more than 2G could not be transferred using sendfile and limit_rate on 64-bit platforms. *) Bugfix: the files more than 2G could not be transferred using sendfile on 64-bit Linux.
author Igor Sysoev <http://sysoev.ru>
date Tue, 24 Apr 2007 00:00:00 +0400
parents 36af50a5582d
children f70f2f565fe0
comparison
equal deleted inserted replaced
297:df0fd0d43ed8 298:30862655219e
152 152
153 if (send + size > limit) { 153 if (send + size > limit) {
154 size = limit - send; 154 size = limit - send;
155 155
156 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) 156 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
157 & ~(ngx_pagesize - 1); 157 & ~((off_t) ngx_pagesize - 1);
158 158
159 if (aligned <= cl->buf->file_last) { 159 if (aligned <= cl->buf->file_last) {
160 size = aligned - cl->buf->file_pos; 160 size = aligned - cl->buf->file_pos;
161 } 161 }
162 } 162 }