BUG/MINOR: server: fix the connection release logic regarding nearly full conditions
authorWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 11:57:49 +0000 (13:57 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 1 Jul 2020 12:14:29 +0000 (14:14 +0200)
commit35e30c9670dcc76d5a35d3472e38e4afaf93c615
treeaa8267266ef6af6b4212a351305c967bec333735
parent151c253a1e7623ca099fb94cecb40d2adab75b04
BUG/MINOR: server: fix the connection release logic regarding nearly full conditions

There was a logic bug in commit ddfe0743d ("MEDIUM: server: use the two
thresholds for the connection release algorithm"): instead of keeping
only our first idle connection when FDs become scarce, the condition was
inverted resulting in enforcing this constraint unless FDs are scarce.
This results in less idle connections than permitted to be kept under
normal condition.

No backport needed.
include/haproxy/server.h