Mercurial > hg > nginx
comparison src/http/modules/ngx_http_uwsgi_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 | 1d0e03db9f8e |
comparison
equal
deleted
inserted
replaced
6466:984687f25998 | 6467:91c8d990fb45 |
---|---|
107 | 107 |
108 static ngx_conf_bitmask_t ngx_http_uwsgi_next_upstream_masks[] = { | 108 static ngx_conf_bitmask_t ngx_http_uwsgi_next_upstream_masks[] = { |
109 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, | 109 { ngx_string("error"), NGX_HTTP_UPSTREAM_FT_ERROR }, |
110 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, | 110 { ngx_string("timeout"), NGX_HTTP_UPSTREAM_FT_TIMEOUT }, |
111 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, | 111 { ngx_string("invalid_header"), NGX_HTTP_UPSTREAM_FT_INVALID_HEADER }, |
112 { ngx_string("non_idempotent"), NGX_HTTP_UPSTREAM_FT_NON_IDEMPOTENT }, | |
112 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, | 113 { ngx_string("http_500"), NGX_HTTP_UPSTREAM_FT_HTTP_500 }, |
113 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, | 114 { ngx_string("http_503"), NGX_HTTP_UPSTREAM_FT_HTTP_503 }, |
114 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, | 115 { ngx_string("http_403"), NGX_HTTP_UPSTREAM_FT_HTTP_403 }, |
115 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, | 116 { ngx_string("http_404"), NGX_HTTP_UPSTREAM_FT_HTTP_404 }, |
116 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, | 117 { ngx_string("updating"), NGX_HTTP_UPSTREAM_FT_UPDATING }, |