From: Igor Sysoev Date: Thu, 28 Jan 2010 08:33:24 +0000 (+0000) Subject: Fix segfault when while discarding body a write event handler is called, X-Git-Tag: release-0.8.33~6 X-Git-Url: http://www.kaiwu.me/postgresql/commit/?a=commitdiff_plain;h=918ef947da4c809d1b87f284070ab7b19645ab9d;p=nginx.git 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. --- diff --git a/src/http/ngx_http_request.c b/src/http/ngx_http_request.c index 30639810d..63eccf177 100644 --- a/src/http/ngx_http_request.c +++ b/src/http/ngx_http_request.c @@ -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;