summaryrefslogtreecommitdiffhomepage
path: root/src/stream/ngx_stream_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/stream/ngx_stream_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 '')
-rw-r--r--src/stream/ngx_stream_upstream.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
index 741ef4e0a..0fe416b26 100644
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -130,6 +130,7 @@ typedef struct {
time_t start_sec;
ngx_uint_t requests;
ngx_uint_t responses;
+ ngx_msec_t start_time;
ngx_str_t ssl_name;