diff options
| author | Ruslan Ermilov <ru@nginx.com> | 2019-04-24 16:38:54 +0300 |
|---|---|---|
| committer | Ruslan Ermilov <ru@nginx.com> | 2019-04-24 16:38:54 +0300 |
| commit | 0e2653877eaa60d3cbc0c8fffd72434871670543 (patch) | |
| tree | 7e410ab933a7f1aa1adc10d6899c219e7c49f0bc /src/http/ngx_http_upstream.c | |
| parent | 2ace7fc3e683fcfa44ff9c355face60983db7eae (diff) | |
| download | nginx-0e2653877eaa60d3cbc0c8fffd72434871670543.tar.gz nginx-0e2653877eaa60d3cbc0c8fffd72434871670543.tar.bz2 | |
Variables support in limit_rate and limit_rate_after (ticket #293).
Diffstat (limited to 'src/http/ngx_http_upstream.c')
| -rw-r--r-- | src/http/ngx_http_upstream.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.c b/src/http/ngx_http_upstream.c index a7391d09a..925824366 100644 --- a/src/http/ngx_http_upstream.c +++ b/src/http/ngx_http_upstream.c @@ -2979,6 +2979,7 @@ ngx_http_upstream_send_response(ngx_http_request_t *r, ngx_http_upstream_t *u) 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 @@ ngx_http_upstream_process_limit_rate(ngx_http_request_t *r, ngx_table_elt_t *h, if (n != NGX_ERROR) { r->limit_rate = (size_t) n; + r->limit_rate_set = 1; } return NGX_OK; |
