]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: connections: Get ride of the xprt_done callback.
authorOlivier Houchard <ohouchard@haproxy.com>
Wed, 22 Jan 2020 17:08:48 +0000 (18:08 +0100)
committerOlivier Houchard <cognet@ci0.org>
Wed, 22 Jan 2020 17:56:05 +0000 (18:56 +0100)
commit477902bd2e8c1e978ad43d22dba1f28525bb797a
tree4b56d26002da7808e1fc03c60d0c45712b02c4f8
parent8af03b396a6025437b675f9ecaa5db321ec4918c
MEDIUM: connections: Get ride of the xprt_done callback.

The xprt_done_cb callback was used to defer some connection initialization
until we're connected and the handshake are done. As it mostly consists of
creating the mux, instead of using the callback, introduce a conn_create_mux()
function, that will just call conn_complete_session() for frontend, and
create the mux for backend.
In h2_wake(), make sure we call the wake method of the stream_interface,
as we no longer wakeup the stream task.
include/proto/connection.h
include/proto/session.h
include/types/connection.h
src/backend.c
src/connection.c
src/mux_h2.c
src/session.c
src/ssl_sock.c
src/xprt_handshake.c