﻿id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc	uname	nginx_version
1436	ngx_http_upstream_test_next u->peer.tries > 1	crasyangel.lhy@…		"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?
"	defect	closed	minor	1.13	other	1.13.x	worksforme			Darwin B000000089858B 16.7.0 Darwin Kernel Version 16.7.0: Wed Oct  4 00:17:00 PDT 2017; root:xnu-3789.71.6~1/RELEASE_X86_64 x86_64	"nginx version: nginx/1.13.7
built by clang 9.0.0 (clang-900.0.38)
configure arguments: --without-http_rewrite_module"
