mirror of
https://github.com/nginx/nginx.git
synced 2024-11-28 16:39:00 +08:00
Upstream: introduced u->upstream.
It holds upstream{} block configuration, including ones selected via run-time lookup using variables.
This commit is contained in:
parent
017cf96c9b
commit
4d4542c838
@ -748,6 +748,8 @@ found:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u->upstream = uscf;
|
||||||
|
|
||||||
#if (NGX_HTTP_SSL)
|
#if (NGX_HTTP_SSL)
|
||||||
u->ssl_name = uscf->host;
|
u->ssl_name = uscf->host;
|
||||||
#endif
|
#endif
|
||||||
|
@ -313,6 +313,7 @@ struct ngx_http_upstream_s {
|
|||||||
ngx_chain_writer_ctx_t writer;
|
ngx_chain_writer_ctx_t writer;
|
||||||
|
|
||||||
ngx_http_upstream_conf_t *conf;
|
ngx_http_upstream_conf_t *conf;
|
||||||
|
ngx_http_upstream_srv_conf_t *upstream;
|
||||||
#if (NGX_HTTP_CACHE)
|
#if (NGX_HTTP_CACHE)
|
||||||
ngx_array_t *caches;
|
ngx_array_t *caches;
|
||||||
#endif
|
#endif
|
||||||
|
@ -521,6 +521,8 @@ found:
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
u->upstream = uscf;
|
||||||
|
|
||||||
#if (NGX_STREAM_SSL)
|
#if (NGX_STREAM_SSL)
|
||||||
u->ssl_name = uscf->host;
|
u->ssl_name = uscf->host;
|
||||||
#endif
|
#endif
|
||||||
|
@ -124,6 +124,7 @@ typedef struct {
|
|||||||
ngx_str_t ssl_name;
|
ngx_str_t ssl_name;
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
ngx_stream_upstream_srv_conf_t *upstream;
|
||||||
ngx_stream_upstream_resolved_t *resolved;
|
ngx_stream_upstream_resolved_t *resolved;
|
||||||
ngx_stream_upstream_state_t *state;
|
ngx_stream_upstream_state_t *state;
|
||||||
unsigned connected:1;
|
unsigned connected:1;
|
||||||
|
Loading…
Reference in New Issue
Block a user