MINOR: connection: implement conn_release()
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Wed, 20 Mar 2024 14:37:09 +0000 (15:37 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Mar 2024 15:12:36 +0000 (16:12 +0100)
commitff2e71ae243dbb9aa5c0dfd601f06295a4102c6b
tree35d3c401c8ed1d5a2a3a683fe7419c5777031796
parent10ece2cf66fcfc3b0b917fb8ac2b3d0c4a6cb698
MINOR: connection: implement conn_release()

Several places reuse the same code to ensure a connection is properly
freed, either via its MUX or by calling the proper set of functions.
Factorize all of this in a new function conn_release().

This new function is now called via session_free() and
session_accept_fd(). It will also be reused on delete server to
proactively close idle connections.
include/haproxy/connection.h
src/connection.c
src/session.c