BUG/MEDIUM: connections: Don't forget to decrement idle connection counters.
authorOlivier Houchard <ohouchard@haproxy.com>
Thu, 19 Mar 2020 22:52:28 +0000 (23:52 +0100)
committerOlivier Houchard <cognet@ci0.org>
Thu, 19 Mar 2020 22:56:08 +0000 (23:56 +0100)
commitfdc7ee21739bfbdc2585dd3977d4ab3cb9a7df14
treec6d2cc9100e83501858f040d0a7f48119e0fb784
parentb3397367dc7cec9e78c62c54efc24d9db5cde2d2
BUG/MEDIUM: connections: Don't forget to decrement idle connection counters.

In conn_backend_get(), when we manage to get an idle connection from the
current thread's pool, don't forget to decrement the idle connection
counters, or we may end up not reusing connections when we could, and/or
killing connections when we shouldn't.
src/backend.c