MINOR: connection: extend takeover with release option
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 15 Mar 2024 14:36:33 +0000 (15:36 +0100)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 22 Mar 2024 15:12:36 +0000 (16:12 +0100)
commitf3862a9bc722fe1de705c1f0b2cacb959f3617a9
treefc44d1b51545f3c704586d6eaedf50794e872f8b
parentff2e71ae243dbb9aa5c0dfd601f06295a4102c6b
MINOR: connection: extend takeover with release option

Extend takeover API both for MUX and XPRT with a new boolean argument
<release>. Its purpose is to signal if the connection will be freed
immediately after the takeover, rendering new resources allocation
unnecessary.

For the moment, release argument is always false. However, it will be
set to true on delete server CLI handler to proactively close server
idle connections.
include/haproxy/connection-t.h
src/backend.c
src/mux_fcgi.c
src/mux_h1.c
src/mux_h2.c
src/ssl_sock.c