]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: check: implement check-reuse-pool
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 Mar 2025 16:25:57 +0000 (17:25 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 2 Apr 2025 12:57:40 +0000 (14:57 +0200)
commitf1fb396d714b81d1e42458536afe0ef924c6908f
treebfec8a50243f86048ac3b9b226c42d83da95815b
parente34f748e3ac12878b9d425d1e81f7c33ccb1b94e
MEDIUM: check: implement check-reuse-pool

Implement the possibility to reuse idle connections when performing
server checks. This is done thanks to the recently introduced functions
be_calculate_conn_hash() and be_reuse_connection().

One side effect of this change is that be_calculate_conn_hash() can now
be called with a NULL stream instance. As such, part of the functions
are adjusted accordingly.

Note that to simplify configuration, connection reuse is not performed
if any specific check connection parameters are defined on the server
line or via the tcp-check connect rule. This is performed via newly
defined tcpcheck_use_nondefault_connect().
include/haproxy/tcpcheck-t.h
src/backend.c
src/tcpcheck.c