mirror of
https://github.com/nginx/nginx.git
synced 2024-12-01 03:17:17 +08:00
Bugfix: read event was not blocked after reading body.
Read event should be blocked after reading body, else undefined behaviour might occur on additional client activity. This fixes segmentation faults observed with proxy_ignore_client_abort set.
This commit is contained in:
parent
3541ab2d79
commit
bfbbfc85df
@ -378,6 +378,8 @@ ngx_http_do_read_client_request_body(ngx_http_request_t *r)
|
||||
rb->bufs = rb->bufs->next;
|
||||
}
|
||||
|
||||
r->read_event_handler = ngx_http_block_reading;
|
||||
|
||||
rb->post_handler(r);
|
||||
|
||||
return NGX_OK;
|
||||
|
Loading…
Reference in New Issue
Block a user