]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: connection: make the initialization more consistent
authorWilly Tarreau <w@1wt.eu>
Thu, 6 Sep 2018 09:45:30 +0000 (11:45 +0200)
committerWilly Tarreau <w@1wt.eu>
Thu, 6 Sep 2018 09:45:30 +0000 (11:45 +0200)
commitbe373150c7f90fc69ccd110ed38eadb6ca0735f3
treedf417b8c79c6272a9bf8ecb4464da5e6a3794ed0
parent950a8a6fde81054ed28862a2ab7e24df95e1f1c8
MINOR: connection: make the initialization more consistent

Sometimes a connection is prepared before the target is set, sometimes
after. There's no real rule since the few functions involved operate on
different and independent fields. Soon we'll benefit from knowing the
target at the connection layer, in order to figure the associated proxy
and retrieve the various parameters (timeouts etc). This patch slightly
reorders a few calls to conn_prepare() so that we can make sure that the
target is always known to the mux.
include/proto/connection.h
src/checks.c
src/peers.c
src/session.c