]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: listeners: introduce listener_set_state()
authorWilly Tarreau <w@1wt.eu>
Thu, 24 Sep 2020 05:23:45 +0000 (07:23 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commita37b244509f48a534bd6812298f9b7fff48833dc
tree479f70982db3cb18341f83eeb227361b5dac4cf4
parentbec7ab0ad9e00ac2f796d5d265cb692cab0c7e8f
MINOR: listeners: introduce listener_set_state()

This function is used as a wrapper to set a listener's state everywhere.
We'll use it later to maintain some counters in a consistent state when
switching state so it's capital that all state changes go through it.
No functional change was made beyond calling the wrapper.
include/haproxy/listener.h
src/listener.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c