commit | cd655351b8f00057f170cede81888f69bb43a5b1 | [log] [tgz] |
---|---|---|
author | willy tarreau <willy@wtap.(none)> | Sat Apr 29 12:11:46 2006 +0200 |
committer | willy tarreau <willy@wtap.(none)> | Sat Apr 29 12:11:46 2006 +0200 |
tree | d1f5fda90b41684db7b6a41cfa877ac64bcfcb44 | |
parent | a5e8c663a98281be24e8e5451aca0cb1b895a9d5 [diff] |
[MEDIUM] it was not possible to balance between backup servers in source hash mode.
diff --git a/haproxy.c b/haproxy.c index be05a76..319c953 100644 --- a/haproxy.c +++ b/haproxy.c
@@ -2041,7 +2041,7 @@ return NULL; l = h = 0; - if (px->srv_act > 1) { + if (px->srv_act > 1 || (px->srv_act == 0 && px->srv_bck > 1)) { while ((l + sizeof (int)) <= len) { h ^= ntohl(*(unsigned int *)(&addr[l])); l += sizeof (int);