Fix segfault when while discarding body a write event handler is called,

runs ngx_http_core_run_phases(), and starts a request processing again.
The write event has clear type and remained in a keepalive connection.
The bug was introduced in r3050.
This commit is contained in:
Igor Sysoev 2010-01-28 08:33:24 +00:00
parent 2f5bcf2d17
commit 918ef947da

View File

@ -1997,6 +1997,7 @@ ngx_http_finalize_request(ngx_http_request_t *r, ngx_int_t rc)
}
r->done = 1;
r->write_event_handler = ngx_http_request_empty_handler;
if (!r->post_action) {
r->request_complete = 1;