]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: mux_pt: make cs_shutr() / cs_shutw() properly close the connection
authorWilly Tarreau <w@1wt.eu>
Thu, 5 Oct 2017 16:47:38 +0000 (18:47 +0200)
committerWilly Tarreau <w@1wt.eu>
Tue, 31 Oct 2017 17:03:24 +0000 (18:03 +0100)
commit4b795245914eac02c7d2b776f5b5086afd6f3a2f
treed25d6ff40706a774d1da3f71fb598055db8bbc4b
parent6978db35e92ccf4777d040b92a4c1b2ef144f202
MEDIUM: mux_pt: make cs_shutr() / cs_shutw() properly close the connection

Now these functions are able to automatically close both the transport
and the socket layer, causing the whole connection to be torn down if
needed.

The two shutdown modes are implemented for both directions, and when
a direction is closed, if it sees the other one is closed as well, it
completes by closing the connection. This is similar to what is performed
in the stream interface.

It's not deployed yet but the purpose is to get rid of conn_full_close()
where only conn_stream should be known.
src/mux_pt.c