mirror of
https://github.com/nginx/nginx.git
synced 2025-06-12 05:11:37 +08: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
@ -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…
Reference in New Issue
Block a user