commit | 7f68d815af356fbe1b2e1080a88b9935581c91d2 | [log] [tgz] |
---|---|---|
author | Amaury Denoyelle <adenoyelle@haproxy.com> | Tue Jan 26 14:35:26 2021 +0100 |
committer | Willy Tarreau <w@1wt.eu> | Tue Jan 26 14:48:39 2021 +0100 |
tree | 96836a53d36bad2415dfd8fa69de375bd82a416c | |
parent | 37e25bcd1e2cf9beb6d976f52b79a4721ecd679f [diff] |
REORG: backend: simplify conn_backend_get Reorganize the conditions for the reuse of idle/safe connections : - reduce code by using variable to store reuse mode and idle/safe conns counts - consider that idle/safe/avail lists are properly allocated if max_idle_conns not null. An allocation failure prevents haproxy startup.