aboutsummaryrefslogtreecommitdiff
path: root/src/stream/ngx_stream_upstream.h
diff options
context:
space:
mode:
authorRoman Arutyunyan <arut@nginx.com>2015-06-25 12:36:52 +0300
committerRoman Arutyunyan <arut@nginx.com>2015-06-25 12:36:52 +0300
commitf81ae4e39234526d259d6ecdd62a09cad6f7adce (patch)
tree0578a40a7d68b07c51fd1e30b54393980b297afd /src/stream/ngx_stream_upstream.h
parent74942045d5ee7a6955ffb5e1d38e534721b04137 (diff)
downloadnginx-f81ae4e39234526d259d6ecdd62a09cad6f7adce.tar.gz
nginx-f81ae4e39234526d259d6ecdd62a09cad6f7adce.zip
Stream: upstream "connected" flag.
Once upstream is connected, the upstream buffer is allocated. Previously, the proxy module used the buffer allocation status to check if upstream is connected. Now it's enough to check the flag.
Diffstat (limited to 'src/stream/ngx_stream_upstream.h')
-rw-r--r--src/stream/ngx_stream_upstream.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/stream/ngx_stream_upstream.h b/src/stream/ngx_stream_upstream.h
index fddc2b168..80520c2b3 100644
--- a/src/stream/ngx_stream_upstream.h
+++ b/src/stream/ngx_stream_upstream.h
@@ -87,8 +87,8 @@ typedef struct {
#if (NGX_STREAM_SSL)
ngx_str_t ssl_name;
#endif
- ngx_uint_t proxy_protocol;
- /* unsigned proxy_protocol:1; */
+ unsigned connected:1;
+ unsigned proxy_protocol:1;
} ngx_stream_upstream_t;