diff options
author | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-26 10:49:57 +0000 |
---|---|---|
committer | Maxim Dounin <mdounin@mdounin.ru> | 2011-12-26 10:49:57 +0000 |
commit | 41a77d183c5b5b0b57d042378e01488362406fb7 (patch) | |
tree | 776559bd3ecbe69410643031e09e1b9a46f62f19 | |
parent | 6a56732e981b5d628709677755c3eb015ab0c931 (diff) | |
download | nginx-41a77d183c5b5b0b57d042378e01488362406fb7.tar.gz nginx-41a77d183c5b5b0b57d042378e01488362406fb7.zip |
Fixed throughput problems with large limit_rate.
Previous attempt to fix this was in r1658 (0.6.18), though that one wasn't
enough (it was a noop).
-rw-r--r-- | src/http/ngx_http_write_filter_module.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/http/ngx_http_write_filter_module.c b/src/http/ngx_http_write_filter_module.c index 46351349c..f5dc6c196 100644 --- a/src/http/ngx_http_write_filter_module.c +++ b/src/http/ngx_http_write_filter_module.c @@ -262,7 +262,7 @@ ngx_http_write_filter(ngx_http_request_t *r, ngx_chain_t *in) } } - delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate + 1); + delay = (ngx_msec_t) ((nsent - sent) * 1000 / r->limit_rate); if (delay > 0) { c->write->delayed = 1; |