From 918ef947da4c809d1b87f284070ab7b19645ab9d Mon Sep 17 00:00:00 2001 From: Igor Sysoev Date: Thu, 28 Jan 2010 08:33:24 +0000 Subject: 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. --- src/http/ngx_http_request.c | 1 + 1 file changed, 1 insertion(+) 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; -- cgit