Mercurial > hg > nginx-quic
comparison src/stream/ngx_stream_upstream.h @ 6675:ab9b4fd8c5b7
Stream: the $upstream_addr variable.
Keeps the full address of the upstream server. If several servers were
contacted during proxying, their addresses are separated by commas,
e.g. "192.168.1.1:80, 192.168.1.2:80".
author | Vladimir Homutov <vl@nginx.com> |
---|---|
date | Fri, 02 Sep 2016 18:27:05 +0300 |
parents | 9757cffc1e2f |
children | df3a7c029dec |
comparison
equal
deleted
inserted
replaced
6674:38143d1abdec | 6675:ab9b4fd8c5b7 |
---|---|
77 #endif | 77 #endif |
78 }; | 78 }; |
79 | 79 |
80 | 80 |
81 typedef struct { | 81 typedef struct { |
82 ngx_str_t *peer; | |
83 } ngx_stream_upstream_state_t; | |
84 | |
85 | |
86 typedef struct { | |
82 ngx_str_t host; | 87 ngx_str_t host; |
83 in_port_t port; | 88 in_port_t port; |
84 ngx_uint_t no_port; /* unsigned no_port:1 */ | 89 ngx_uint_t no_port; /* unsigned no_port:1 */ |
85 | 90 |
86 ngx_uint_t naddrs; | 91 ngx_uint_t naddrs; |
102 ngx_uint_t responses; | 107 ngx_uint_t responses; |
103 #if (NGX_STREAM_SSL) | 108 #if (NGX_STREAM_SSL) |
104 ngx_str_t ssl_name; | 109 ngx_str_t ssl_name; |
105 #endif | 110 #endif |
106 ngx_stream_upstream_resolved_t *resolved; | 111 ngx_stream_upstream_resolved_t *resolved; |
112 ngx_stream_upstream_state_t *state; | |
107 unsigned connected:1; | 113 unsigned connected:1; |
108 unsigned proxy_protocol:1; | 114 unsigned proxy_protocol:1; |
109 } ngx_stream_upstream_t; | 115 } ngx_stream_upstream_t; |
110 | 116 |
111 | 117 |