Commit graph

29 commits

Author SHA1 Message Date
Igor Sysoev
a9b2c85779 fix divide by zero if max_fails=0 2008-08-26 14:34:16 +00:00
Igor Sysoev
95cf37a78f *) remove zero termination in ngx_inet_ntop() and ngx_sock_ntop()
*) use ngx_snprintf() in ngx_inet_ntop() and ngx_sock_ntop()
   as they are called just once per connection
*) NGX_INET_ADDRSTRLEN
2008-08-21 18:47:23 +00:00
Igor Sysoev
0ebc285aa0 *) back out r2040
*) refactor ngx_palloc()
*) introduce ngx_pnalloc()
*) additional pool blocks have smaller header
2008-06-17 15:00:30 +00:00
Igor Sysoev
24da7352fd use ngx_int_t in ngx_sort() callback 2008-03-24 13:04:02 +00:00
Igor Sysoev
58a15e5a7d set absolute weight, this fixes bogus "no live upstream" case when
last upstream is down while live one has negative weight
2008-02-11 14:31:38 +00:00
Igor Sysoev
cddb620691 proxy_pass variables support 2007-11-27 13:34:13 +00:00
Igor Sysoev
ad8723ae80 use real weight, do not downground to one 2007-10-15 10:15:54 +00:00
Igor Sysoev
1a344ced38 optimization 2007-10-10 13:58:47 +00:00
Igor Sysoev
1b528b45da use pool instead of ngx_conf_t 2007-10-08 08:55:12 +00:00
Igor Sysoev
a472d89407 fix r1552 and r1464: test max fails in correct peer 2007-10-02 12:34:16 +00:00
Igor Sysoev
97ffb89fd5 fix r1464: test max fails in correct peer 2007-10-01 14:45:31 +00:00
Igor Sysoev
6a5cc2396e u_char* is enough to keep file name 2007-09-15 17:11:06 +00:00
Igor Sysoev
373a10cff1 balance more fair when there are several servers with equal weights,
side effect: now smallest weights go first
2007-09-09 18:23:21 +00:00
Igor Sysoev
11cb8111fa fix case when server was marked as down after one failure 2007-09-05 15:30:19 +00:00
Igor Sysoev
9db497a7fd backout r1426: return dynamic weights 2007-09-05 15:28:19 +00:00
Igor Sysoev
0ffbc71642 style fix 2007-08-31 12:13:12 +00:00
Igor Sysoev
16d586c0c4 cancel dynamic weights,
it seems that may permanently set lower weight or even mark server as down
2007-08-27 16:02:43 +00:00
Igor Sysoev
83a74ef59d add guard code to prevent endless loop 2007-08-24 15:58:13 +00:00
Igor Sysoev
e743193c2d fix long loop 2007-08-14 13:35:52 +00:00
Igor Sysoev
f9827bbc56 sort upstream weights 2007-08-09 15:28:17 +00:00
Igor Sysoev
73d67a9729 backup upstream servers 2007-08-09 13:54:33 +00:00
Igor Sysoev
14301cb098 "down" server caused endless loop 2007-08-07 12:34:20 +00:00
Igor Sysoev
a6d25b840f fair upstream weight balancer 2007-07-28 16:04:01 +00:00
Igor Sysoev
cd23e55fe1 fix segfault when session was freed twice 2007-07-10 21:04:37 +00:00
Igor Sysoev
41ecc76aa9 fix worker endless loop on 64-bit platform if 33+ backend has fall 2007-05-21 13:48:14 +00:00
Igor Sysoev
b395b435d7 fix msvc build failure 2006-12-13 15:06:46 +00:00
Igor Sysoev
a01e63ea8c rewritten upstream 2006-12-12 16:46:16 +00:00
Igor Sysoev
e522905cba fix fastcgi and memcached upstreams 2006-12-11 08:59:30 +00:00
Igor Sysoev
2eb4b164a3 upstream choice modules 2006-12-04 16:46:13 +00:00