commit | 28a9e529f8ec5b78f7047c8b94c5684fb594ba5b | [log] [tgz] |
---|---|---|
author | Willy Tarreau <w@1wt.eu> | Sun Sep 14 17:43:27 2008 +0200 |
committer | Willy Tarreau <w@1wt.eu> | Sun Dec 07 23:30:38 2008 +0100 |
tree | 7f9063bfe0a427cf76bb7eb266c6f8cb12b4e62c | |
parent | 43662ff35d8b172edf8237aa277985ab1bbbcacf [diff] |
[BUG] dynamic connection throttling could return a max of zero conns srv_dynamic_maxconn() is clearly documented as returning at least 1 possible connection under throttling. But the computation was wrong, the minimum 1 was divided and got lost in case of very low maxconns. Apply the MAX(1, max) before returning the result in order to ensure that a newly appeared server will get some traffic. (cherry picked from commit 819970098f134453c0934047b3bd3440b0996b55)