comparison src/http/ngx_http_core_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 56688ed172c8
children fa32d59d9a15
comparison
equal deleted inserted replaced
213:405beeeadf7f 214:0ad9eeb6ac7f
1160 ngx_http_subrequest(ngx_http_request_t *r, 1160 ngx_http_subrequest(ngx_http_request_t *r,
1161 ngx_str_t *uri, ngx_str_t *args, ngx_uint_t flags) 1161 ngx_str_t *uri, ngx_str_t *args, ngx_uint_t flags)
1162 { 1162 {
1163 ngx_connection_t *c; 1163 ngx_connection_t *c;
1164 ngx_http_request_t *sr; 1164 ngx_http_request_t *sr;
1165 ngx_http_log_ctx_t *ctx;
1165 ngx_http_core_srv_conf_t *cscf; 1166 ngx_http_core_srv_conf_t *cscf;
1166 ngx_http_postponed_request_t *pr, *p; 1167 ngx_http_postponed_request_t *pr, *p;
1167 1168
1168 r->main->subrequests--; 1169 r->main->subrequests--;
1169 1170
1270 p->next = pr; 1271 p->next = pr;
1271 1272
1272 } else { 1273 } else {
1273 r->postponed = pr; 1274 r->postponed = pr;
1274 } 1275 }
1276
1277 ctx = c->log->data;
1278 ctx->current_request = sr;
1275 1279
1276 sr->internal = 1; 1280 sr->internal = 1;
1277 sr->fast_subrequest = 1; 1281 sr->fast_subrequest = 1;
1278 1282
1279 sr->discard_body = r->discard_body; 1283 sr->discard_body = r->discard_body;