comparison src/http/ngx_http_request.c @ 3415:1b8c3599e3ce

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.
author Igor Sysoev <igor@sysoev.ru>
date Thu, 28 Jan 2010 08:33:24 +0000
parents 42c16d8bddbe
children ee713c767b25
comparison
equal deleted inserted replaced
3414:cc327fa82f63 3415:1b8c3599e3ce
1995 &r->uri, &r->args); 1995 &r->uri, &r->args);
1996 return; 1996 return;
1997 } 1997 }
1998 1998
1999 r->done = 1; 1999 r->done = 1;
2000 r->write_event_handler = ngx_http_request_empty_handler;
2000 2001
2001 if (!r->post_action) { 2002 if (!r->post_action) {
2002 r->request_complete = 1; 2003 r->request_complete = 1;
2003 } 2004 }
2004 2005