mirror of
https://github.com/nginx/nginx.git
synced 2026-08-28 12:45:21 +00:00
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).
This commit is contained in:
parent
6a56732e98
commit
41a77d183c
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue