Wrong data in $upstream_status and $upstream_response_time

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 ?

Thanks in advance,
Daniel Biazus

Posted at Nginx Forum:

Hello!

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

“$upstream_response_time” are eventually returning wrong data, like the
Is that make sense to you guys ? Is it expected ?
Yes, see Module ngx_http_upstream_module.


Maxim D.
http://nginx.org/