aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_core_module.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-08-26 16:04:05 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-08-26 16:04:05 +0000
commitb603dd4b43b8c4b2cf8a1e74a87fd5799ab537b6 (patch)
treeaa0664cbf5c6812aa0dd3335d01f2496233061d4 /src/http/ngx_http_core_module.c
parent450659e62a74d2f4abe17c7a0dec77ffd3b9f123 (diff)
downloadnginx-b603dd4b43b8c4b2cf8a1e74a87fd5799ab537b6.tar.gz
nginx-b603dd4b43b8c4b2cf8a1e74a87fd5799ab537b6.zip
request reference counter
Diffstat (limited to 'src/http/ngx_http_core_module.c')
-rw-r--r--src/http/ngx_http_core_module.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/http/ngx_http_core_module.c b/src/http/ngx_http_core_module.c
index e79dd1cd2..988d8f0e8 100644
--- a/src/http/ngx_http_core_module.c
+++ b/src/http/ngx_http_core_module.c
@@ -1260,10 +1260,6 @@ ngx_http_core_content_phase(ngx_http_request_t *r,
rc = ph->handler(r);
- if (rc == NGX_DONE) {
- return NGX_OK;
- }
-
if (rc != NGX_DECLINED) {
ngx_http_finalize_request(r, rc);
return NGX_OK;
@@ -2126,6 +2122,7 @@ ngx_http_subrequest(ngx_http_request_t *r,
sr->uri_changes = NGX_HTTP_MAX_URI_CHANGES + 1;
r->main->subrequests++;
+ r->main->count++;
*psr = sr;
@@ -2178,6 +2175,7 @@ ngx_http_internal_redirect(ngx_http_request_t *r,
#endif
r->internal = 1;
+ r->main->count++;
ngx_http_handler(r);
@@ -2192,6 +2190,8 @@ ngx_http_named_location(ngx_http_request_t *r, ngx_str_t *name)
ngx_http_core_loc_conf_t **clcfp;
ngx_http_core_main_conf_t *cmcf;
+ r->main->count++;
+
cscf = ngx_http_get_module_srv_conf(r, ngx_http_core_module);
if (cscf->named_locations) {