comparison src/os/unix/ngx_linux_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 d8f5c91a5c07
children cba14c1e2a4b
comparison
equal deleted inserted replaced
297:df0fd0d43ed8 298:30862655219e
221 221
222 if (send + size > limit) { 222 if (send + size > limit) {
223 size = limit - send; 223 size = limit - send;
224 224
225 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) 225 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1)
226 & ~(ngx_pagesize - 1); 226 & ~((off_t) ngx_pagesize - 1);
227 227
228 if (aligned <= cl->buf->file_last) { 228 if (aligned <= cl->buf->file_last) {
229 size = aligned - cl->buf->file_pos; 229 size = aligned - cl->buf->file_pos;
230 } 230 }
231 } 231 }