yaoweibin/ngx_http_consistent_hash — pull request #1 by cmaion (2013-03-07 15:39:20+00:00)
Title: Fix failover to a differrent bucket/host

This commit fixes failover to a different bucket/node when target bucket/node is down or failed.
The "uchpd->rrp.tried[n]" bitmap holds a per-node "tried" flag, but it was improperly used, resulting in different buckets served by different nodes using the same flag... thus missing available buckets / saturating the bitmap (and failing) before finding an available node.