MINOR: backend: refactor insertion in avail conns tree
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 Oct 2023 08:10:14 +0000 (10:10 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 25 Oct 2023 08:33:06 +0000 (10:33 +0200)
commitf76e94d231449d9da6d7f5b5df18d9bfb9975180
tree57f2ebef3c21aea5c93ce5b1084a8d93ff94c14b
parent394bd4eb39e60d33ed3e2a7449c00153cfe3d351
MINOR: backend: refactor insertion in avail conns tree

Define a new function srv_add_to_avail_list(). This function is used to
centralize connection insertion in available tree. It reuses a BUG_ON()
statement to ensure the connection is not present in the idle list.
include/haproxy/server.h
src/backend.c
src/connection.c
src/mux_fcgi.c
src/mux_h2.c
src/server.c