Welcome! Log In Create A New Profile

Advanced

Re: Regarding keepalive and idempotency

Maxim Dounin
January 09, 2014 08:22AM
Hello!

On Tue, Jan 07, 2014 at 10:44:26PM +0530, Fasihullah Askiri wrote:

> Thanks a lot for the clarification. Is there a timeline on the future
> plan? Is it like a few releases or is it more like a long term plan?

No ETA, it's a long term plan.

>
> On 1/7/14, Maxim Dounin <mdounin@mdounin.ru> wrote:
> > 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
> >
>
>
> --
> +Fasih
>
> Life is 10% what happens to you and 90% how you react to it
>
> _______________________________________________
> nginx-devel mailing list
> nginx-devel@nginx.org
> http://mailman.nginx.org/mailman/listinfo/nginx-devel

--
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 1210 January 04, 2014 06:46AM

Re: Regarding keepalive and idempotency

Maxim Dounin 441 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 424 January 09, 2014 08:22AM



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

Online Users

Guests: 169
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