Welcome! Log In Create A New Profile

Advanced

Re: HTTP: add connect_timeout for proxy_next_upstream

Maxim Dounin
March 25, 2019 01:08PM
Hello!

On Sun, Mar 24, 2019 at 04:57:54PM +0800, 吕海涛 wrote:

> commit c6f872f4dfa4abecc953f09cdb3e1537d866d2f4
> Author: 吕海涛 <lv@haitao.dev>
> Date: Sun Mar 24 16:46:56 2019 +0800
>
> HTTP: add connect_timeout for proxy_next_upstream
>
> Nginx support both timeout and non_idempotent flag for
> proxy_next_upstream. However, in some environment,
> even the GET method is non_idempotent.
>
> We need nginx try the next upstream if and only if the
> tcp connect is timeout.

Thank you for your patch.

If GET requests are not idempotent in your environment, you have a
serious problem regardless of nginx request handling, as browsers
and other clients will not consider these requests non-idempotent,
and will re-try requests as needed. You may want to re-engineer
your request handling instead of trying to introduce workarounds
in nginx.

[...]

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

HTTP: add connect_timeout for proxy_next_upstream

吕海涛 256 March 24, 2019 05:00AM

Re: HTTP: add connect_timeout for proxy_next_upstream

Maxim Dounin 129 March 25, 2019 01:08PM



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

Online Users

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