[PATCH] Unbreak proxy_ignore_client_abort

Maxim Dounin mdounin at mdounin.ru
Mon Sep 5 07:09:23 UTC 2011


# HG changeset patch
# User Maxim Dounin <mdounin at mdounin.ru>
# Date 1315206147 -14400
# Node ID 98f7c018dede66890d85883650367471a3c87d37
# Parent  be879690193107c294b7ecdca9e0c996ea96a763
Unbreak proxy_ignore_client_abort.

Not blocking read event after request body has been read is incorrect
and causes segmentation fault if proxy_ignore_client_abort used.

diff --git a/src/http/ngx_http_request_body.c b/src/http/ngx_http_request_body.c
--- a/src/http/ngx_http_request_body.c
+++ b/src/http/ngx_http_request_body.c
@@ -378,6 +378,8 @@ ngx_http_do_read_client_request_body(ngx
         rb->bufs = rb->bufs->next;
     }
 
+    r->read_event_handler = ngx_http_block_reading;
+
     rb->post_handler(r);
 
     return NGX_OK;



More information about the nginx-devel mailing list