Mercurial > hg > nginx-vendor-current
comparison src/http/ngx_http_write_filter_module.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 | 38e7b94d63ac |
children | cba14c1e2a4b |
comparison
equal
deleted
inserted
replaced
297:df0fd0d43ed8 | 298:30862655219e |
---|---|
208 | 208 |
209 return NGX_ERROR; | 209 return NGX_ERROR; |
210 } | 210 } |
211 | 211 |
212 if (r->limit_rate) { | 212 if (r->limit_rate) { |
213 to_send = r->limit_rate * (ngx_time() - r->start_time + 1) - c->sent; | 213 to_send = r->limit_rate * (ngx_time() - r->start_sec + 1) - c->sent; |
214 | 214 |
215 if (to_send <= 0) { | 215 if (to_send <= 0) { |
216 c->write->delayed = 1; | 216 c->write->delayed = 1; |
217 ngx_add_timer(c->write, | 217 ngx_add_timer(c->write, |
218 (ngx_msec_t) (- to_send * 1000 / r->limit_rate + 1)); | 218 (ngx_msec_t) (- to_send * 1000 / r->limit_rate + 1)); |