]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: centralize init/deinit of backend elements
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 27 Jul 2023 13:30:07 +0000 (15:30 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 24 Aug 2023 12:44:33 +0000 (14:44 +0200)
commitd8d9122a02adb7b6f13e952892f1c43d6e57bdb5
treeb1486fc80184cfb5c598c0f9cf7aefafc17c7540
parentfbe35afaa4e3d5e9c24e9408547c0322c308a066
MINOR: connection: centralize init/deinit of backend elements

A connection contains extra elements which are only used for the backend
side. Regroup their allocation and deallocation in two new functions
named conn_backend_init() and conn_backend_deinit().

No functional change is introduced with this commit. The new functions
are reused in place of manual alloc/dealloc in conn_new() / conn_free().
This patch will be useful for reverse connect support with connection
conversion from backend to frontend side and vice-versa.
src/backend.c
src/connection.c
src/server.c