]> git.kaiwu.me - nginx.git/commit
Upstream: reject upstreams without normal servers.
authorMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Apr 2012 21:29:35 +0000 (21:29 +0000)
committerMaxim Dounin <mdounin@mdounin.ru>
Mon, 2 Apr 2012 21:29:35 +0000 (21:29 +0000)
commita5d4f66ad6ebccf281743995718c67d10f5ef18c
tree287fe082a40c79b56efa953c11ed4db1f611993b
parent525e1f75e4e32fad8cfa198630bf29b7c147263a
Upstream: reject upstreams without normal servers.

Such upstreams cause CPU hog later in the code as number of peers isn't
expected to be 0.  Currently this may happen either if there are only backup
servers defined in an upstream block, or if server with ipv6 address used
in an upstream block.
src/http/ngx_http_upstream_round_robin.c