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

    committed Aug 15, 2014
  2. Fix Markdown

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

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

    Bug fix for infinite loop.
    committed May 31, 2013
  2. @zls0424

    Bug fix for infinite loop.

    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;
      }
    }
    zls0424 committed May 31, 2013
Commits on Oct 23, 2012
  1. Merge pull request #5 from PiotrSikora/weights

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

    Add weights support for the upstream servers.

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

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

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

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

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

    Evan Miller committed Oct 19, 2009
Something went wrong with that request. Please try again.