comparison src/http/ngx_http_postpone_filter_module.c @ 665:5fd7a5e99047 release-0.3.54

nginx-0.3.54-RELEASE import *) 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; the bug had appeared in 0.3.53.
author Igor Sysoev <igor@sysoev.ru>
date Tue, 11 Jul 2006 13:20:19 +0000
parents 947c6fd27699
children 63a820b0bc6c
comparison
equal deleted inserted replaced
664:db08f60f873f 665:5fd7a5e99047
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 }