Welcome! Log In Create A New Profile

Advanced

Regarding keepalive and idempotency

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

Relevant RFC section

A client, server, or proxy MAY close the transport connection at any time.
For example, a client might have started to send a new request at the same
time that the server has decided to close the "idle" connection. From the
server's point of view, the connection is being closed while it was idle,
but from the client's point of view, a request is in progress.

This means that clients, servers, and proxies MUST be able to recover from
asynchronous close events. Client software SHOULD reopen the transport
connection and retransmit the aborted sequence of requests without user
interaction so long as the request sequence is idempotent (see section
9.1.2). Non-idempotent methods or sequences MUST NOT be automatically
retried, although user agents MAY offer a human operator the choice of
retrying the request(s). Confirmation by user-agent software with semantic
understanding of the application MAY substitute for user confirmation. The
automatic retry SHOULD NOT be repeated if the second sequence of requests
fails.

Regards
Fasih
_______________________________________________
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 425 January 09, 2014 08:22AM



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

Online Users

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