mirror of
https://github.com/nginx/nginx.git
synced 2026-06-26 11:52:00 +00: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
1 changed files with 2 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue