]> git.kaiwu.me - nginx.git/commit
Merge of r5113, r5114: upstream: resolve errors handling.
authorMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 17:34:45 +0000 (17:34 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Fri, 29 Mar 2013 17:34:45 +0000 (17:34 +0000)
commit53516741fc0d0e88cfbdbb132771069917ad093d
tree10b71bf6f3c6838fc4e7afa3213db007a2445450
parent2191f68d43a872967d6ab33fe1cc368590355982
Merge of r5113, r5114: upstream: resolve errors handling.

Upstream: call ngx_http_run_posted_requests() on resolve errors.

If proxy_pass to a host with dynamic resolution was used to handle
a subrequest, and host resolution failed, the main request wasn't run
till something else happened on the connection.  E.g. request to "/zzz"
with the following configuration hanged:

    addition_types *;
    resolver 8.8.8.8;

    location /test {
        set $ihost xxx;
        proxy_pass http://$ihost;
    }

    location /zzz {
        add_after_body /test;
        return 200 "test";
    }

Report and original version of the patch by Lanshun Zhou,
http://mailman.nginx.org/pipermail/nginx-devel/2013-March/003476.html.
src/http/ngx_http_upstream.c