]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: move listener->frontend to bind_conf->frontend
authorWilly Tarreau <w@1wt.eu>
Wed, 21 Dec 2016 23:13:31 +0000 (00:13 +0100)
committerWilly Tarreau <w@1wt.eu>
Thu, 22 Dec 2016 22:26:38 +0000 (23:26 +0100)
commitc95bad5013a288f9e5f94baab91f5cebbc68b237
treeef363b8b552e398eeb459ed20c13d671dad10b7b
parent71a8c7c49e912f4c6117b62bdf24cbe21916c2ae
MEDIUM: move listener->frontend to bind_conf->frontend

Historically, all listeners have a pointer to the frontend. But since
the introduction of SSL, we now have an intermediary layer called
bind_conf corresponding to a "bind" line. It makes no sense to have
the frontend on each listener given that it's the same for all
listeners belonging to a same bind_conf. Also certain parts like
SSL can only operate on bind_conf and need the frontend.

This patch fixes this by moving the frontend pointer from the listener
to the bind_conf. The extra indirection is quite cheap given and the
places were this is used are very scarce.
include/proto/listener.h
include/types/listener.h
src/cfgparse.c
src/cli.c
src/hlua_fcn.c
src/listener.c
src/peers.c
src/session.c