Mercurial > hg > nginx-vendor-current
comparison src/os/unix/ngx_solaris_sendfilev_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 | f7cd062ee035 |
comparison
equal
deleted
inserted
replaced
297:df0fd0d43ed8 | 298:30862655219e |
---|---|
133 | 133 |
134 if (send + size > limit) { | 134 if (send + size > limit) { |
135 size = limit - send; | 135 size = limit - send; |
136 | 136 |
137 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) | 137 aligned = (cl->buf->file_pos + size + ngx_pagesize - 1) |
138 & ~(ngx_pagesize - 1); | 138 & ~((off_t) ngx_pagesize - 1); |
139 | 139 |
140 if (aligned <= cl->buf->file_last) { | 140 if (aligned <= cl->buf->file_last) { |
141 size = aligned - cl->buf->file_pos; | 141 size = aligned - cl->buf->file_pos; |
142 } | 142 } |
143 } | 143 } |