Mercurial > hg > nginx
comparison src/http/modules/ngx_http_scgi_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 |
---|---|
75 | 75 |
76 static ngx_conf_bitmask_t ngx_http_scgi_next_upstream_masks[] = { | 76 static ngx_conf_bitmask_t ngx_http_scgi_next_upstream_masks[] = { |
77 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, | 77 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, |
78 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, | 78 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, |
79 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, | 79 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, |
80 { ngx_string("non_idempotent"), NGX_HTTP_UPSTREAM_FT_NON_IDEMPOTENT }, | |
80 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, | 81 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, |
81 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, | 82 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, |
82 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, | 83 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, |
83 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, | 84 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, |
84 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, | 85 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, |