mirror of
https://github.com/nginx/nginx.git
synced 2025-08-06 06:46:16 +08:00
fix two previous commits: an early parallel body discarding completion
disables incomplete ngx_http_writer()
This commit is contained in:
parent
9a1f0ac730
commit
e418e0661c
@ -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);
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user