Welcome! Log In Create A New Profile

Advanced

[BUG] Posted requests not handled after dns resolving

lanshun zhou
March 12, 2013 12:32PM
in ngx_http_upstream_resolve_handler, posted requests are not handled, so
if a run time
dns resolving is failed in a subrequest, (for example, the resolver can not
be reached, or
the domain does not exist) the main request will know nothing about this,
until something
else attached to this connection happens, like connection broken or a write
timeout

a patch is attached and hope it helps

simple configuration that can reproduce the problem (with addition module
enabled):

addition_types *;

resolver your_resolver_here;

location /test {
set $ihost xxx; # xxx here causes a failed
run-time dns resolving
proxy_pass http://$ihost;
}

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

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

[BUG] Posted requests not handled after dns resolving Attachments

lanshun zhou 617 March 12, 2013 12:32PM

Re: [BUG] Posted requests not handled after dns resolving

Maxim Dounin 318 March 13, 2013 12:30PM

Re: [BUG] Posted requests not handled after dns resolving

lanshun zhou 351 March 13, 2013 06:46PM

Re: [BUG] Posted requests not handled after dns resolving

Maxim Dounin 280 March 14, 2013 08:40AM

Re: [BUG] Posted requests not handled after dns resolving

lanshun zhou 293 March 14, 2013 11:22AM

Re: [BUG] Posted requests not handled after dns resolving

Maxim Dounin 330 March 14, 2013 12:24PM



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

Online Users

Guests: 261
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