]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: protocol: do not call proto->bind_all() anymore
authorWilly Tarreau <w@1wt.eu>
Tue, 1 Sep 2020 16:48:35 +0000 (18:48 +0200)
committerWilly Tarreau <w@1wt.eu>
Wed, 2 Sep 2020 08:19:41 +0000 (10:19 +0200)
commit94320859f9024e29791f097f550f57b67273326f
tree138b93f1ff8cbe8d93555e1e886228fac73bd56d
parent06a1806083dd9f0d21e045baad4c61559211f956
MINOR: protocol: do not call proto->bind_all() anymore

All protocols only iterate over their own listeners list and start
the listeners using a direct call to their ->bind() function. This
code duplication doesn't make sense and prevents us from centralizing
the startup error handling. Worse, it's not even symmetric because
there's an unbind_all_listeners() function common to all protocols
without any equivalent for binding. Let's start by directly calling
each protocol's bind() function from protocol_bind_all().
src/protocol.c