1.9.13 and non_idempotent

Maxim Dounin mdounin at mdounin.ru
Mon Apr 4 13:42:29 UTC 2016


Hello!

On Fri, Apr 01, 2016 at 10:33:22PM -0700, Frank Liu wrote:

> Will this work?
> 
> --- ngx_http_upstream.c.orig 2016-03-29 15:09:31.000000000 +0000
> +++ ngx_http_upstream.c 2016-04-02 05:28:17.877466756 +0000
> @@ -3990,6 +3990,7 @@
>      timeout = u->conf->next_upstream_timeout;
> 
>      if (u->request_sent
> +        && (ft_type != NGX_HTTP_UPSTREAM_FT_HTTP_404)
>          && (r->method & (NGX_HTTP_POST|NGX_HTTP_LOCK|NGX_HTTP_PATCH)))
>      {
>          ft_type |= NGX_HTTP_UPSTREAM_FT_NON_IDEMPOTENT;

Yes, looks correct.

-- 
Maxim Dounin
http://nginx.org/



More information about the nginx mailing list