Mercurial > hg > nginx
diff src/http/ngx_http_upstream.c @ 7504:c19ca381b2e6
Variables support in limit_rate and limit_rate_after (ticket #293).
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Wed, 24 Apr 2019 16:38:54 +0300 |
parents | 608810849b6d |
children | 319242d2ddc9 |
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.c Wed Apr 24 16:38:51 2019 +0300 +++ b/src/http/ngx_http_upstream.c Wed Apr 24 16:38:54 2019 +0300 @@ -2979,6 +2979,7 @@ ngx_http_upstream_process_non_buffered_downstream; r->limit_rate = 0; + r->limit_rate_set = 1; if (u->input_filter_init(u->input_filter_ctx) == NGX_ERROR) { ngx_http_upstream_finalize_request(r, u, NGX_ERROR); @@ -4806,6 +4807,7 @@ if (n != NGX_ERROR) { r->limit_rate = (size_t) n; + r->limit_rate_set = 1; } return NGX_OK;