comparison src/http/ngx_http_upstream.h @ 430:dac47e9ef0d5 NGINX_0_7_27

nginx 0.7.27 *) Feature: the "try_files" directive. *) Feature: variables support in the "fastcgi_pass" directive. *) Feature: now the $geo variable may get an address from a variable. Thanks to Andrei Nigmatulin. *) Feature: now a location's modifier may be used without space before name. *) Feature: the $upstream_response_length variable. *) Bugfix: now a "add_header" directive does not add an empty value. *) Bugfix: if zero length static file was requested, then nginx just closed connection; the bug had appeared in 0.7.25. *) Bugfix: a MOVE method could not move file in non-existent directory. *) Bugfix: a segmentation fault occurred in worker process, if no one named location was defined in server, but some one was used in an error_page directive. Thanks to Sergey Bochenkov.
author Igor Sysoev <http://sysoev.ru>
date Mon, 15 Dec 2008 00:00:00 +0300
parents e7dbea1ee115
children 49a0eb7ce20c
comparison
equal deleted inserted replaced
429:3b8e9d1bc9bb 430:dac47e9ef0d5
43 ngx_uint_t bl_state; 43 ngx_uint_t bl_state;
44 44
45 ngx_uint_t status; 45 ngx_uint_t status;
46 time_t response_sec; 46 time_t response_sec;
47 ngx_uint_t response_msec; 47 ngx_uint_t response_msec;
48 off_t response_length;
48 49
49 ngx_str_t *peer; 50 ngx_str_t *peer;
50 } ngx_http_upstream_state_t; 51 } ngx_http_upstream_state_t;
51 52
52 53
142 143
143 ngx_hash_t hide_headers_hash; 144 ngx_hash_t hide_headers_hash;
144 ngx_array_t *hide_headers; 145 ngx_array_t *hide_headers;
145 ngx_array_t *pass_headers; 146 ngx_array_t *pass_headers;
146 147
147 ngx_str_t schema;
148
149 ngx_array_t *store_lengths; 148 ngx_array_t *store_lengths;
150 ngx_array_t *store_values; 149 ngx_array_t *store_values;
151 150
152 signed store:2; 151 signed store:2;
153 unsigned intercept_404:1; 152 unsigned intercept_404:1;
214 in_addr_t *addrs; 213 in_addr_t *addrs;
215 ngx_resolver_ctx_t *ctx; 214 ngx_resolver_ctx_t *ctx;
216 } ngx_http_upstream_resolved_t; 215 } ngx_http_upstream_resolved_t;
217 216
218 217
218 typedef void (*ngx_http_upstream_handler_pt)(ngx_http_request_t *r,
219 ngx_http_upstream_t *u);
220
221
219 struct ngx_http_upstream_s { 222 struct ngx_http_upstream_s {
220 ngx_event_handler_pt read_event_handler; 223 ngx_http_upstream_handler_pt read_event_handler;
221 ngx_event_handler_pt write_event_handler; 224 ngx_http_upstream_handler_pt write_event_handler;
222 225
223 ngx_peer_connection_t peer; 226 ngx_peer_connection_t peer;
224 227
225 ngx_event_pipe_t *pipe; 228 ngx_event_pipe_t *pipe;
226 229