]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: server: move idle tree insert in a dedicated function
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 25 Aug 2023 13:48:39 +0000 (15:48 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 25 Aug 2023 13:57:48 +0000 (15:57 +0200)
commit61fc9568fb6546aa256144220db37e6548c1e5d7
treebe3e83f35f826e4cda275c689ff30bc8abdb7b49
parent77ac8eb4a6d0337d83fbd4448a1ed62988d4610a
MINOR: server: move idle tree insert in a dedicated function

Define a new function _srv_add_idle(). This is a simple wrapper to
insert a connection in the server idle tree. This is reserved for simple
usage and require to idle_conns lock. In most cases,
srv_add_to_idle_list() should be used.

This patch does not have any functional change. However, it will help
with the next patch as idle connection will be always inserted in a list
as secondary storage along with idle/safe trees.
include/haproxy/server.h
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/server.c
src/ssl_sock.c