Opened 3 years ago

Closed 3 years ago

#1436 closed defect (worksforme)

ngx_http_upstream_test_next u->peer.tries > 1

Reported by: crasyangel.lhy@… Owned by:
Priority: minor Milestone: 1.13
Component: other Version: 1.13.x
Keywords: Cc:
uname -a: 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 -V: nginx version: nginx/1.13.7
built by clang 9.0.0 (clang-900.0.38)
configure arguments: --without-http_rewrite_module

Description

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?

Change History (1)

comment:1 by Maxim Dounin, 3 years ago

Resolution: worksforme
Status: newclosed
Note: See TracTickets for help on using tickets.