MINOR: rhttp: add count of active conns per thread
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 22 Nov 2023 16:55:58 +0000 (17:55 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Nov 2023 16:43:01 +0000 (17:43 +0100)
commita3187fe06c74c80a29a8c790b6d768e76dcb2b04
tree0d2c3f95e98f25609ea451f44c0087c1cde1f803
parent55e78ff7e1233bdf83080930df10b41d3478c8b3
MINOR: rhttp: add count of active conns per thread

Add a new member <nb_rhttp_conns> in thread_ctx structure. Its purpose
is to count the current number of opened reverse HTTP connections
regarding from their listeners membership.

This patch will be useful to support multi-thread for active reverse
HTTP, in order to select the less loaded thread.

Note that despite access to <nb_rhttp_conns> are only done by the
current thread, atomic operations are used. This is because once
multi-thread support will be added, external threads will also retrieve
values from others.
include/haproxy/tinfo-t.h
src/connection.c
src/proto_rhttp.c