mirror of
https://github.com/nginx/nginx.git
synced 2025-06-11 20:53:30 +08:00
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:
parent
2f5bcf2d17
commit
918ef947da
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user