Welcome! Log In Create A New Profile

Advanced

Re: wrong data in $upstream_status and $upstream_response_time

Maxim Dounin
September 10, 2014 01:04PM
Hello!

On Wed, Sep 10, 2014 at 10:30:55AM -0400, biazus wrote:

> Hey Guys,
>
> We have been using the latest stable Nginx version 1.6.1, and I've could
> notice that we might be facing a bug that was supposed to be fixed in
> version 1.5.11.
>
> Bugfix: the $upstream_status variable might contain wrong data if the
> "proxy_cache_use_stale" or "proxy_cache_revalidate" directives were used.
>
> On MISS requests the variables "$upstream_status" and
> "$upstream_response_time" are eventually returning wrong data, like the
> example bellow:
>
> $upstream_status - “504, 504, 200" or even “-, 200"
>
> $upstream_response_time - “8.005, 0.242"
>
> As you can see, the data contain two or three values separated by a comma,
> and also the $upstream_response_time contain two time values, both separated
> by comma.
>
> Is that make sense to you guys ? Is it expected ?

Yes, see http://nginx.org/r/$upstream_addr.

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

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

wrong data in $upstream_status and $upstream_response_time

biazus September 10, 2014 10:30AM

Re: wrong data in $upstream_status and $upstream_response_time

Maxim Dounin September 10, 2014 01:04PM



Sorry, only registered users may post in this forum.

Click here to login

Online Users

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