ngx_http_upstream_test_next u->peer.tries > 1

crasyangel nginx-forum at forum.nginx.org
Fri Nov 24 08:23:30 UTC 2017


assume all servers always fail in upstream

nginx would call ngx_http_upstream_next when u->peer.tries > 1, and call
ngx_http_upstream_finalize_request directly when  u->peer.tries == 1

it would not pass NGX_PEER_FAILED to u->peer.free

so how peer->fails increase when last retry fail?

Posted at Nginx Forum: https://forum.nginx.org/read.php?2,277494,277494#msg-277494



More information about the nginx mailing list