]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connection: make mux->detach() release the connection
authorWilly Tarreau <w@1wt.eu>
Sun, 8 Oct 2017 09:00:17 +0000 (11:00 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit2c52a2b9ee472574d59c97427e5149df1e5eb496
tree2a1e4317784287cbfb02920f715242354c5482a8
parenta553ae96f56070c9dada03d2598177ccca5b2689
MEDIUM: connection: make mux->detach() release the connection

For H2, only the mux's timeout or other conditions might cause a
release of the mux and the connection, no stream should be allowed
to kill such a shared connection. So a stream will only detach using
cs_destroy() which will call mux->detach() then free the cs.

For now it's only handled by mux_pt. The goal is that the data layer
never has to care about the connection, which will have to be released
depending on the mux's mood.
include/proto/connection.h
src/mux_pt.c