diff src/http/ngx_http_upstream.h @ 6654:c131f20c9562

Upstream: the $upstream_bytes_received variable. Unlike $upstream_response_length that only counts the body size, the new variable also counts the size of response header and data received after switching protocols when proxying WebSockets.
author Vladimir Homutov <vl@nginx.com>
date Wed, 10 Aug 2016 16:46:39 +0300
parents 1d0e03db9f8e
children edcd9303a4d3
line wrap: on
line diff
--- a/src/http/ngx_http_upstream.h
+++ b/src/http/ngx_http_upstream.h
@@ -63,6 +63,7 @@ typedef struct {
     ngx_msec_t                       connect_time;
     ngx_msec_t                       header_time;
     off_t                            response_length;
+    off_t                            bytes_received;
 
     ngx_str_t                       *peer;
 } ngx_http_upstream_state_t;