comparison src/http/ngx_http_upstream.h @ 5008:fd84344f1df7

Fixed and improved the "*_bind" directives of proxying modules. The "proxy_bind", "fastcgi_bind", "uwsgi_bind", "scgi_bind" and "memcached_bind" directives are now inherited; inherited value can be reset by the "off" parameter. Duplicate directives are now detected. Parameter value can now contain variables.
author Ruslan Ermilov <ru@nginx.com>
date Wed, 16 Jan 2013 09:42:57 +0000
parents c9059bd5445b
children 7fa7e60a7f66
comparison
equal deleted inserted replaced
5007:13c4c155f26f 5008:fd84344f1df7
119 ngx_uint_t no_port; /* unsigned no_port:1 */ 119 ngx_uint_t no_port; /* unsigned no_port:1 */
120 }; 120 };
121 121
122 122
123 typedef struct { 123 typedef struct {
124 ngx_addr_t *addr;
125 ngx_http_complex_value_t *value;
126 } ngx_http_upstream_local_t;
127
128
129 typedef struct {
124 ngx_http_upstream_srv_conf_t *upstream; 130 ngx_http_upstream_srv_conf_t *upstream;
125 131
126 ngx_msec_t connect_timeout; 132 ngx_msec_t connect_timeout;
127 ngx_msec_t send_timeout; 133 ngx_msec_t send_timeout;
128 ngx_msec_t read_timeout; 134 ngx_msec_t read_timeout;
156 162
157 ngx_hash_t hide_headers_hash; 163 ngx_hash_t hide_headers_hash;
158 ngx_array_t *hide_headers; 164 ngx_array_t *hide_headers;
159 ngx_array_t *pass_headers; 165 ngx_array_t *pass_headers;
160 166
161 ngx_addr_t *local; 167 ngx_http_upstream_local_t *local;
162 168
163 #if (NGX_HTTP_CACHE) 169 #if (NGX_HTTP_CACHE)
164 ngx_shm_zone_t *cache; 170 ngx_shm_zone_t *cache;
165 171
166 ngx_uint_t cache_min_uses; 172 ngx_uint_t cache_min_uses;