comparison src/http/ngx_http_postpone_filter_module.c @ 214:0ad9eeb6ac7f NGINX_0_3_54

nginx 0.3.54 *) Feature: nginx now logs the subrequest information to the error log. *) Feature: the "proxy_next_upstream", "fastcgi_next_upstream", and "memcached_next_upstream" directives support the "off" parameter. *) Feature: the "debug_connection" directive supports the CIDR address form. *) Bugfix: if a response of proxied server or FastCGI server was converted from UTF-8 or back, then it may be transferred incomplete. *) Bugfix: the $upstream_response_time variable had the time of the first request to a backend only. *) Bugfix: nginx could not be built on amd64 platform; bug appeared in 0.3.53.
author Igor Sysoev <http://sysoev.ru>
date Tue, 11 Jul 2006 00:00:00 +0400
parents af7f2341ecc5
children fa32d59d9a15
comparison
equal deleted inserted replaced
213:405beeeadf7f 214:0ad9eeb6ac7f
160 static ngx_int_t 160 static ngx_int_t
161 ngx_http_postpone_filter_output_postponed_request(ngx_http_request_t *r) 161 ngx_http_postpone_filter_output_postponed_request(ngx_http_request_t *r)
162 { 162 {
163 ngx_int_t rc; 163 ngx_int_t rc;
164 ngx_chain_t *out; 164 ngx_chain_t *out;
165 ngx_http_log_ctx_t *ctx;
165 ngx_http_postponed_request_t *pr; 166 ngx_http_postponed_request_t *pr;
166 167
167 for ( ;; ) { 168 for ( ;; ) {
168 pr = r->postponed; 169 pr = r->postponed;
169 170
174 if (pr->request) { 175 if (pr->request) {
175 176
176 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0, 177 ngx_log_debug2(NGX_LOG_DEBUG_HTTP, r->connection->log, 0,
177 "http postpone filter handle \"%V?%V\"", 178 "http postpone filter handle \"%V?%V\"",
178 &pr->request->uri, &pr->request->args); 179 &pr->request->uri, &pr->request->args);
180
181 ctx = r->connection->log->data;
182 ctx->current_request = pr->request;
179 183
180 if (!pr->request->done) { 184 if (!pr->request->done) {
181 r->connection->data = pr->request; 185 r->connection->data = pr->request;
182 return NGX_AGAIN; 186 return NGX_AGAIN;
183 } 187 }