BUG/MINOR: server: always count one idle slot for current thread
authorWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 18:37:29 +0000 (20:37 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 29 Jun 2020 19:54:38 +0000 (21:54 +0200)
commite69282a03f5ced81161f18f1aba4f737382f0c56
tree6d79502ebe592ecda574cb3ea35eb2b91f397a3d
parent369a2efc27ee785a831aff23db8eb9b0d70c2e9d
BUG/MINOR: server: always count one idle slot for current thread

The idle server connection estimates brought in commit bdb86bd ("MEDIUM:
server: improve estimate of the need for idle connections") were committed
without the minimum of 1 idle conn needed for the current thread. The net
effect is that there are bursts of dropped connections when the load varies
because there's no provision for the last connection.

No backport needed, this is 2.2-dev.
include/haproxy/server.h