Skip to content
Commits on Aug 16, 2014
  1. Tweak markdown

    committed
  2. Fix Markdown

    committed
Commits on Jun 16, 2013
  1. Merge pull request #9 from flygoast/master

    committed
    Add specified upstream hash module structure to avoid patch for nginx core
Commits on Jun 14, 2013
  1. @flygoast
Commits on May 31, 2013
  1. Merge pull request #6 from zls0424/master

    committed
    Bug fix for infinite loop.
  2. @zls0424

    Bug fix for infinite loop.

    zls0424 committed
    Consider the following step:
    
    hash_again = 1  => pc->tries = 2
    
    After ngx_http_upstream_init_hash_peer -> ngx_http_upstream_hash_next_peer, pc->tries becomes 1.
    If the first upstream fails, after ngx_http_upstream_free_hash_peer -> ngx_http_upstream_hash_next_peer,
    pc->tries becomes (ngx_uint_t) -1.
    
    Maybe a better patch is needed, and this one just fix the problem.
    
    Easy to reproduce: (curl localhost/xxxx)
    
    upstream not_exists {
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
      server localhost:9999;
    
      hash $args;
      hash_again 1;
    }
    
    server {
      listen 80;
    
      location / {
        proxy_pass http://not_exists;
      }
    }
Commits on Oct 23, 2012
  1. Merge pull request #5 from PiotrSikora/weights

    committed
    Add weights support for the upstream servers.
Commits on Oct 22, 2012
  1. @PiotrSikora

    Add weights support for the upstream servers.

    PiotrSikora committed
    Signed-off-by: Piotr Sikora <piotr@cloudflare.com>
Commits on Apr 25, 2012
  1. Fix spin-lock when all servers are down

    Evan Miller committed
Commits on Feb 29, 2012
  1. Skip "backup" servers; support health checks

    Evan Miller committed
Commits on Aug 10, 2010
  1. Support SSL backends

    committed
Commits on Jun 3, 2010
  1. Support for servers marked "down".

    committed
    Thanks to Jack Lindamood/Facebook.
Commits on Oct 19, 2009
  1. First commit.

    Evan Miller committed
Something went wrong with that request. Please try again.