comparison src/http/modules/ngx_http_fastcgi_module.c @ 6467:91c8d990fb45

Upstream: proxy_next_upstream non_idempotent. By default, requests with non-idempotent methods (POST, LOCK, PATCH) are no longer retried in case of errors if a request was already sent to a backend. Previous behaviour can be restored by using "proxy_next_upstream ... non_idempotent".
author Maxim Dounin <mdounin@mdounin.ru>
date Mon, 28 Mar 2016 19:50:19 +0300
parents a93345ee8f52
children 2cd019520210
comparison
equal deleted inserted replaced
6466:984687f25998 6467:91c8d990fb45
204 204
205 static ngx_conf_bitmask_t ngx_http_fastcgi_next_upstream_masks[] = { 205 static ngx_conf_bitmask_t ngx_http_fastcgi_next_upstream_masks[] = {
206 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, 206 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR },
207 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, 207 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT },
208 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, 208 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER },
209 { ngx_string("non_idempotent"), NGX_HTTP_UPSTREAM_FT_NON_IDEMPOTENT },
209 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, 210 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 },
210 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, 211 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 },
211 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, 212 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 },
212 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, 213 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 },
213 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, 214 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING },