Mercurial > hg > nginx
comparison src/http/ngx_http_request_body.c @ 4072:cf334deeea66
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.
author | Maxim Dounin <mdounin@mdounin.ru> |
---|---|
date | Mon, 05 Sep 2011 12:43:31 +0000 |
parents | 87f47e05fc82 |
children | d620f497c50f |
comparison
equal
deleted
inserted
replaced
4071:cf09c4826ab3 | 4072:cf334deeea66 |
---|---|
376 && (r->request_body_in_file_only || r->request_body_in_single_buf)) | 376 && (r->request_body_in_file_only || r->request_body_in_single_buf)) |
377 { | 377 { |
378 rb->bufs = rb->bufs->next; | 378 rb->bufs = rb->bufs->next; |
379 } | 379 } |
380 | 380 |
381 r->read_event_handler = ngx_http_block_reading; | |
382 | |
381 rb->post_handler(r); | 383 rb->post_handler(r); |
382 | 384 |
383 return NGX_OK; | 385 return NGX_OK; |
384 } | 386 } |
385 | 387 |