Welcome! Log In Create A New Profile

Advanced

[PATCH] Unbreak proxy_ignore_client_abort

Maxim Dounin
September 05, 2011 03:10AM
# HG changeset patch
# User Maxim Dounin <mdounin@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;

_______________________________________________
nginx-devel mailing list
nginx-devel@nginx.org
http://mailman.nginx.org/mailman/listinfo/nginx-devel
Subject Author Views Posted

[PATCH] Unbreak proxy_ignore_client_abort

Maxim Dounin 2024 September 05, 2011 03:10AM



Sorry, you do not have permission to post/reply in this forum.

Online Users

Guests: 159
Record Number of Users: 8 on April 13, 2023
Record Number of Guests: 421 on December 02, 2018
Powered by nginx      Powered by FreeBSD      PHP Powered      Powered by MariaDB      ipv6 ready