]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: stream-interface: introduce si_attach_conn to replace si_prepare_conn
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Oct 2013 13:50:53 +0000 (15:50 +0200)
committerWilly Tarreau <w@1wt.eu>
Mon, 9 Dec 2013 14:40:23 +0000 (15:40 +0100)
commit2a6e8802c0d471e1886bcb7cb24f161140e70ef5
treea109df25cbd7493c08bc5dd111c7db7a86887494
parent7abddb5c6714a8d50ea63bbc69d23820844bca1d
MEDIUM: stream-interface: introduce si_attach_conn to replace si_prepare_conn

si_prepare_conn() is not appropriate in our case as it both initializes and
attaches the connection to the stream interface. Due to the asymmetry between
accept() and connect(), it causes some fields such as the control and transport
layers to be reinitialized.

Now that we can separately initialize these fields using conn_prepare(), let's
break this function to only attach the connection to the stream interface.

Also, by analogy, si_prepare_none() was renamed si_detach(), and
si_prepare_applet() was renamed si_attach_applet().
include/proto/stream_interface.h
src/backend.c
src/peers.c
src/session.c
src/stream_interface.c