]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connections: Introduce a new XPRT method, start().
authorOlivier Houchard <cognet@ci0.org>
Fri, 5 Mar 2021 22:37:48 +0000 (23:37 +0100)
committerWilly Tarreau <w@1wt.eu>
Fri, 19 Mar 2021 14:33:04 +0000 (15:33 +0100)
commit1b3c931bffbac8ffb3efb1b489f7572be219e6e8
tree04d49b1c6b55be762a6e56efa7466fd299f68049
parentca1a57f022900f60d2f483c13df9ff29e5145e7d
MEDIUM: connections: Introduce a new XPRT method, start().

Introduce a new XPRT method, start(). The init() method will now only
initialize whatever is needed for the XPRT to run, but any action the XPRT
has to do before being ready, such as handshakes, will be done in the new
start() method. That way, we will be sure the full stack of xprt will be
initialized before attempting to do anything.
The init() call is also moved to conn_prepare(). There's no longer any reason
to wait for the ctrl to be ready, any action will be deferred until start(),
anyway. This means conn_xprt_init() is no longer needed.
13 files changed:
include/haproxy/connection-t.h
include/haproxy/connection.h
src/backend.c
src/proto_quic.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_uxst.c
src/quic_sock.c
src/session.c
src/ssl_sock.c
src/tcpcheck.c
src/xprt_handshake.c
src/xprt_quic.c