Mercurial > hg > nginx
comparison src/http/ngx_http_upstream.h @ 6103:79ddb0bdb273
Upstream: the "zone" directive.
Upstreams with the "zone" directive are kept in shared memory,
with a consistent view of all worker processes.
author | Ruslan Ermilov <ru@nginx.com> |
---|---|
date | Tue, 14 Apr 2015 19:01:25 +0300 |
parents | a08fad30aeac |
children | 59fc60585f1e |
comparison
equal
deleted
inserted
replaced
6102:3264b7828f72 | 6103:79ddb0bdb273 |
---|---|
121 u_char *file_name; | 121 u_char *file_name; |
122 ngx_uint_t line; | 122 ngx_uint_t line; |
123 in_port_t port; | 123 in_port_t port; |
124 in_port_t default_port; | 124 in_port_t default_port; |
125 ngx_uint_t no_port; /* unsigned no_port:1 */ | 125 ngx_uint_t no_port; /* unsigned no_port:1 */ |
126 | |
127 #if (NGX_HTTP_UPSTREAM_ZONE) | |
128 ngx_shm_zone_t *shm_zone; | |
129 #endif | |
126 }; | 130 }; |
127 | 131 |
128 | 132 |
129 typedef struct { | 133 typedef struct { |
130 ngx_addr_t *addr; | 134 ngx_addr_t *addr; |