aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2007-12-27 14:20:50 +0000
committerIgor Sysoev <igor@sysoev.ru>2007-12-27 14:20:50 +0000
commit3d70581d458668b607ca95e39882b5c6a48a461e (patch)
treebe63b54dca3d1ef3f357d403e6f2e1c83ad5eb5e /src/http/ngx_http_request.c
parent5a40e9518e1284dbff0f9b6cff61ab6a7a9a27be (diff)
downloadnginx-3d70581d458668b607ca95e39882b5c6a48a461e.tar.gz
nginx-3d70581d458668b607ca95e39882b5c6a48a461e.zip
non-active request is not done
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index a5ebf1292..016c54298 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -1641,8 +1641,6 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
}
}
- r->done = 1;
-
if (r != c->data) {
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, c->log, 0,
"http finalize non-active request: \"%V?%V\"",
@@ -1650,6 +1648,8 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
return;
}
+ r->done = 1;
+
if (r != r->main) {
pr = r->parent;