]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: add a destroy callback
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Oct 2017 09:16:46 +0000 (11:16 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit436d333124604db40b20344fa58bc41e1148cb2b
tree3f77c7263c4a086a37215218d19675a6cca0f02b
parentac59f361badb83abf960d1a71c9648a36a6c164e
MEDIUM: connection: add a destroy callback

This callback will be used to release upper layers when a mux is in
use. Given that the mux can be asynchronously deleted, we need a way
to release the extra information such as the session.

This callback will be called directly by the mux upon releasing
everything and before the connection itself is released, so that
the callee can find its information inside the connection if needed.

The way it currently works is not perfect, and most likely this should
instead become a mux release callback, but for now we have no easy way
to add mux-specific stuff, and since there's one mux per connection,
it works fine this way.
include/proto/connection.h
include/types/connection.h
src/mux_pt.c
src/session.c