summaryrefslogtreecommitdiffhomepage
path: root/src/http/ngx_http_upstream.h
diff options
context:
space:
mode:
authorVladimir Homutov <vl@nginx.com>2018-11-21 13:40:40 +0300
committerVladimir Homutov <vl@nginx.com>2018-11-21 13:40:40 +0300
commitc24146731810f2711da608cd7f3bdca528a3eb14 (patch)
tree44c5ad93afcaf2c9a5b892c89df657eff1dfa2a3 /src/http/ngx_http_upstream.h
parent0f669b23a84785cdb1891b73d3ecb03a3174ea04 (diff)
downloadnginx-c24146731810f2711da608cd7f3bdca528a3eb14.tar.gz
nginx-c24146731810f2711da608cd7f3bdca528a3eb14.tar.bz2
Upstream: revised upstream response time variables.
Variables now do not depend on presence of the HTTP status code in response. If the corresponding event occurred, variables contain time between request creation and the event, and "-" otherwise. Previously, intermediate value of the $upstream_response_time variable held unix timestamp.
Diffstat (limited to 'src/http/ngx_http_upstream.h')
-rw-r--r--src/http/ngx_http_upstream.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/http/ngx_http_upstream.h b/src/http/ngx_http_upstream.h
index f875b7485..af84e24be 100644
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -365,6 +365,8 @@ struct ngx_http_upstream_s {
ngx_int_t (*rewrite_cookie)(ngx_http_request_t *r,
ngx_table_elt_t *h);
+ ngx_msec_t start_time;
+
ngx_http_upstream_state_t *state;
ngx_str_t method;