wrong data in $upstream_status and $upstream_response_time
mdounin at mdounin.ru
Wed Sep 10 17:03:45 UTC 2014
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.
More information about the nginx