Welcome! Log In Create A New Profile

Advanced

Re: Upstream response time populated even when upstream connection timed out.

Maxim Dounin
February 10, 2024 09:44AM
Hello!

On Fri, Feb 09, 2024 at 12:15:54PM +0000, Sambhav Gupta via nginx-devel wrote:

> I have noticed that upstream response time is populated to a
> non-zero and non-negative value in Nginx even when upstream
> connection times out.
>
> This is not true with other values like upstream connect time
> and upstream header time.
>
> Is this intentional ?

Yes. The $upstream_response_time variable shows total time spent
when working with the upstream, with all the activities included.
It is always set as long as nginx was working with an upstream,
even if there was an error or a timeout.

In contrast, $upstream_connect_time and $upstream_header_time are
only set when the connection was established or the header was
successfully received, respectively.

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

Upstream response time populated even when upstream connection timed out.

Sambhav Gupta via nginx-devel 201 February 09, 2024 07:18AM

Re: Upstream response time populated even when upstream connection timed out.

Maxim Dounin 79 February 10, 2024 09:44AM



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

Online Users

Guests: 107
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 500 on July 15, 2024
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready