Welcome! Log In Create A New Profile

Advanced

Re: Regarding keepalive and idempotency

Maxim Dounin
January 06, 2014 09:24PM
Hello!

On Sat, Jan 04, 2014 at 05:14:51PM +0530, Fasih wrote:

> Hi guys
>
> Hello guys
>
> Nginx keepalive seems to retry automatically on failure. However for
> non-idempotent requests, it is incorrect by RFC to retry automatically
> because the server could have changed its state before nginx detected the
> error.
>
> Is this a bug that would be fixed or did I not get it right?

As of now, keepalive connection retries aren't aware of
idempotence, much like proxy_next_upstream. Retries are only done
in case of early errors though, and this is expected to be good
enought in most cases.

The future plan is to teach proxy_next_upstream and friends about
idempotent or not idempotent methods, and probably also splitting
"error" state into errors before we were theoretically able to
send at least some bytes of the request (that is, retries are for
sure safe even in case of non-idempotent methods), and errors
after that point.

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

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

Regarding keepalive and idempotency

faskiri.devel 1214 January 04, 2014 06:46AM

Re: Regarding keepalive and idempotency

Maxim Dounin 442 January 06, 2014 09:24PM

Re: Regarding keepalive and idempotency

Fasihullah Askiri 464 January 07, 2014 12:16PM

Re: Regarding keepalive and idempotency

Maxim Dounin 426 January 09, 2014 08:22AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 103
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready