diff options
author | Piotr Sikora <piotrsikora@google.com> | 2017-03-24 02:48:03 -0700 |
---|---|---|
committer | Piotr Sikora <piotrsikora@google.com> | 2017-03-24 02:48:03 -0700 |
commit | ca1a5057e2a0429350ec2d07c4616a75e34424e3 (patch) | |
tree | 1f541379013606a8dc6505a26f3ca8710de085e2 /src/http/modules/ngx_http_fastcgi_module.c | |
parent | c3ce606652aeac465895ab8eb8c6fc195d7db16b (diff) | |
download | nginx-ca1a5057e2a0429350ec2d07c4616a75e34424e3.tar.gz nginx-ca1a5057e2a0429350ec2d07c4616a75e34424e3.zip |
Upstream: allow recovery from "429 Too Many Requests" response.
This change adds "http_429" parameter to "proxy_next_upstream" for
retrying rate-limited requests, and to "proxy_cache_use_stale" for
serving stale cached responses after being rate-limited.
Signed-off-by: Piotr Sikora <piotrsikora@google.com>
Diffstat (limited to 'src/http/modules/ngx_http_fastcgi_module.c')
-rw-r--r-- | src/http/modules/ngx_http_fastcgi_module.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/http/modules/ngx_http_fastcgi_module.c b/src/http/modules/ngx_http_fastcgi_module.c index afdea2d02..06c19738d 100644 --- a/src/http/modules/ngx_http_fastcgi_module.c +++ b/src/http/modules/ngx_http_fastcgi_module.c @@ -211,6 +211,7 @@ static ngx_conf_bitmask_t ngx_http_fastcgi_next_upstream_masks[] = { { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, + { ngx_string("http_429"), NGX_HTTP_UPSTREAM_FT_HTTP_429 }, { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, { ngx_string("off"), NGX_HTTP_UPSTREAM_FT_OFF }, { ngx_null_string, 0 } |