]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: backend: extract conn hash calculation from connect_server()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 28 Mar 2025 16:42:14 +0000 (17:42 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 2 Apr 2025 12:57:40 +0000 (14:57 +0200)
commitc7cc6b6401519cbf95cf336d53221c79a364db3a
treef4db527745a0abd3d31da6c1e8d6df91c5c18642
parent4f0240f9a4dbcdba525aec2e191b62212c8c1f8f
MINOR: backend: extract conn hash calculation from connect_server()

On connection reuse, a hash is first calculated. It is generated from
various connection parameters, to retrieve a matching connection.

Extract hash calculation from connect_server() into a new dedicated
function be_calculate_conn_hash(). The objective is to be able to
perform connection reuse for checks, without connect_server() invokation
which relies on a stream instance.
include/haproxy/backend.h
src/backend.c