The official NGINX Open Source repository. https://nginx.org/
Find a file
Maxim Dounin 68f4e482bd Upstream: read handler cleared on upstream finalization.
With "proxy_ignore_client_abort off" (the default), upstream module changes
r->read_event_handler to ngx_http_upstream_rd_check_broken_connection().
If the handler is not cleared during upstream finalization, it can be
triggered later, causing unexpected effects, if, for example, a request
was redirected to a different location using error_page or X-Accel-Redirect.
In particular, it makes "proxy_ignore_client_abort on" non-working after
a redirection in a configuration like this:

    location = / {
        error_page 502 = /error;
        proxy_pass http://127.0.0.1:8082;
    }

    location /error {
        proxy_pass http://127.0.0.1:8083;
        proxy_ignore_client_abort on;
    }

It is also known to cause segmentation faults with aio used, see
http://mailman.nginx.org/pipermail/nginx-ru/2015-August/056570.html.

Fix is to explicitly set r->read_event_handler to ngx_http_block_reading()
during upstream finalization, similar to how it is done in the request body
reading code and in the limit_req module.
2017-02-10 20:24:26 +03:00
auto Configure: removed execute bit from auto/unix. 2017-02-01 20:04:06 +03:00
conf Added the REQUEST_SCHEME parameter. 2015-06-05 22:23:26 +03:00
contrib Contrib: added 'commentstring' for vim-commentary support. 2016-12-13 00:49:44 +01:00
docs nginx-1.11.9-RELEASE 2017-01-24 17:02:18 +03:00
misc Updated OpenSSL used for win32 builds. 2017-01-27 19:06:35 +03:00
src Upstream: read handler cleared on upstream finalization. 2017-02-10 20:24:26 +03:00
.hgtags release-1.11.9 tag 2017-01-24 17:02:19 +03:00