Mercurial > hg > nginx
comparison src/stream/ngx_stream_upstream.h @ 6202:6345822f0abb
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.
author | Roman Arutyunyan <arut@nginx.com> |
---|---|
date | Thu, 25 Jun 2015 12:36:52 +0300 |
parents | 24488e6db782 |
children | 8f038068f4bc |
comparison
equal
deleted
inserted
replaced
6201:24488e6db782 | 6202:6345822f0abb |
---|---|
85 off_t received; | 85 off_t received; |
86 time_t start_sec; | 86 time_t start_sec; |
87 #if (NGX_STREAM_SSL) | 87 #if (NGX_STREAM_SSL) |
88 ngx_str_t ssl_name; | 88 ngx_str_t ssl_name; |
89 #endif | 89 #endif |
90 ngx_uint_t proxy_protocol; | 90 unsigned connected:1; |
91 /* unsigned proxy_protocol:1; */ | 91 unsigned proxy_protocol:1; |
92 } ngx_stream_upstream_t; | 92 } ngx_stream_upstream_t; |
93 | 93 |
94 | 94 |
95 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, | 95 ngx_stream_upstream_srv_conf_t *ngx_stream_upstream_add(ngx_conf_t *cf, |
96 ngx_url_t *u, ngx_uint_t flags); | 96 ngx_url_t *u, ngx_uint_t flags); |