aboutsummaryrefslogtreecommitdiff
path: root/src/http/ngx_http_request.c
diff options
context:
space:
mode:
authorIgor Sysoev <igor@sysoev.ru>2009-10-20 11:48:28 +0000
committerIgor Sysoev <igor@sysoev.ru>2009-10-20 11:48:28 +0000
commite418e0661cd2e7972e73cd67412d019ce2ed13bf (patch)
treeaf15886a29915ae0f7c377c32556647927eef7c0 /src/http/ngx_http_request.c
parent9a1f0ac730012c20b1ab655e6edb7f3cbf30404f (diff)
downloadnginx-e418e0661cd2e7972e73cd67412d019ce2ed13bf.tar.gz
nginx-e418e0661cd2e7972e73cd67412d019ce2ed13bf.zip
fix two previous commits: an early parallel body discarding completion
disables incomplete ngx_http_writer()
Diffstat (limited to 'src/http/ngx_http_request.c')
-rw-r--r--src/http/ngx_http_request.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c
index 753380682..ceb42b3c8 100644
--- a/src/http/ngx_http_request.c
+++ b/src/http/ngx_http_request.c
@@ -2107,7 +2107,6 @@ ngx_http_finalize_connection(ngx_http_request_t *r)
if (r->discard_body) {
r->read_event_handler = ngx_http_discarded_request_body_handler;
- r->write_event_handler = ngx_http_request_empty_handler;
if (r->lingering_time == 0) {
r->lingering_time = ngx_time()
@@ -2249,6 +2248,8 @@ ngx_http_writer(ngx_http_request_t *r)
ngx_log_debug2(NGX_LOG_DEBUG_HTTP, wev->log, 0,
"http writer done: \"%V?%V\"", &r->uri, &r->args);
+ r->write_event_handler = ngx_http_request_empty_handler;
+
ngx_http_finalize_request(r, rc);
}