comparison src/http/modules/ngx_http_proxy_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 44122bddd9a1
children f01ab2dbcfdc
comparison
equal deleted inserted replaced
6466:984687f25998 6467:91c8d990fb45
211 211
212 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = { 212 static ngx_conf_bitmask_t ngx_http_proxy_next_upstream_masks[] = {
213 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, 213 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR },
214 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, 214 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT },
215 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, 215 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER },
216 { ngx_string("non_idempotent"), NGX_HTTP_UPSTREAM_FT_NON_IDEMPOTENT },
216 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, 217 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 },
217 { ngx_string("http_502"), NGX_HTTP_UPSTREAM_FT_HTTP_502 }, 218 { ngx_string("http_502"), NGX_HTTP_UPSTREAM_FT_HTTP_502 },
218 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, 219 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 },
219 { ngx_string("http_504"), NGX_HTTP_UPSTREAM_FT_HTTP_504 }, 220 { ngx_string("http_504"), NGX_HTTP_UPSTREAM_FT_HTTP_504 },
220 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, 221 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 },