]> git.kaiwu.me - haproxy.git/commit
MINOR: xprt_qstrm: implement close callback
authorAmaury Denoyelle <adenoyelle@haproxy.com>
Thu, 23 Apr 2026 09:42:25 +0000 (11:42 +0200)
committerAmaury Denoyelle <adenoyelle@haproxy.com>
Fri, 24 Apr 2026 07:33:04 +0000 (09:33 +0200)
commit268fd68777fc94a74a484e64ba617042df4cce05
tree4449bea4e7f50608412b560251452ba26657c883
parent537c90fb5e96e53e065c1e67a6f871a06e0d9409
MINOR: xprt_qstrm: implement close callback

Implement close callback for xprt_qstrm layer. This is called when a
connection is prematurely closed following a connect failure. Its
purpose is to clean up all xprt resources.

A special care is required for the frontend side. Indeed,
xprt_qstrm_io_cb() can call close callback via conn_create_mux() on the
latter failure. The tasklet should then immediately be stopped as the
whole xprt layer has been freed as well.
src/xprt_qstrm.c