MINOR: connection: allocate dynamically hash node for backend conns
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 19 Feb 2021 14:29:16 +0000 (15:29 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 19 Feb 2021 15:59:18 +0000 (16:59 +0100)
commit8990b010a01e5d31076a1788068d0eef9388153d
treeb7deecb0c6d22eb3a07e703d344417bdb121164e
parent5567f41d0ab61dd6843535edc8081407d599024d
MINOR: connection: allocate dynamically hash node for backend conns

Remove ebmb_node entry from struct connection and create a dedicated
struct conn_hash_node. struct connection contains now only a pointer to
a conn_hash_node, allocated only for connections where target is of type
OBJ_TYPE_SERVER. This will reduce memory footprints for every
connections that does not need http-reuse such as frontend connections.
include/haproxy/connection-t.h
include/haproxy/connection.h
include/haproxy/server.h
include/haproxy/session.h
src/backend.c
src/connection.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/server.c
src/ssl_sock.c