]> git.kaiwu.me - nginx.git/commit
Upstream: allow recovery from "429 Too Many Requests" response.
authorPiotr Sikora <piotrsikora@google.com>
Fri, 24 Mar 2017 09:48:03 +0000 (02:48 -0700)
committerPiotr Sikora <piotrsikora@google.com>
Fri, 24 Mar 2017 09:48:03 +0000 (02:48 -0700)
commitca1a5057e2a0429350ec2d07c4616a75e34424e3
tree1f541379013606a8dc6505a26f3ca8710de085e2
parentc3ce606652aeac465895ab8eb8c6fc195d7db16b
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>
src/http/modules/ngx_http_fastcgi_module.c
src/http/modules/ngx_http_proxy_module.c
src/http/modules/ngx_http_scgi_module.c
src/http/modules/ngx_http_uwsgi_module.c
src/http/ngx_http_upstream.c
src/http/ngx_http_upstream.h