return;
}
+ clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
+
+ if (r != r->main && !r->logged) {
+
+ if (clcf->log_subrequest) {
+ ngx_http_log_request(r);
+ }
+
+ r->logged = 1;
+ }
+
if (r != r->main || rc == NGX_AGAIN) {
if (ngx_http_set_write_handler(r) != NGX_OK) {
return;
return;
}
- clcf = ngx_http_get_module_loc_conf(r, ngx_http_core_module);
-
if (r != r->main) {
pr = r->parent;
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http fast subrequest: \"%V?%V\" done",
&r->uri, &r->args);
-
- if (clcf->log_subrequest) {
- ngx_http_log_request(r);
- }
-
return;
}
"http wake parent request: \"%V?%V\"",
&pr->uri, &pr->args);
- if (clcf->log_subrequest) {
- ngx_http_log_request(r);
- }
-
pr->write_event_handler(pr);
}
-
- return;
- }
-
- if (clcf->log_subrequest) {
- ngx_http_log_request(r);
}
return;