]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MEDIUM: listeners: implement protocol level ->suspend/resume() calls
authorWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 15:02:21 +0000 (17:02 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 16:44:37 +0000 (18:44 +0200)
commite03204c8e1d6111fbbdef105e2cafe9b0a772881
treedefba869f65ff9921124bb80bee1b828e2b4e7d6
parent7b2febde1d3dd1f9d48452e3c6daea1a7ff830a1
MEDIUM: listeners: implement protocol level ->suspend/resume() calls

Now we have ->suspend() and ->resume() for listeners at the protocol
level. This means that it now becomes possible for a protocol to redefine
its own way to suspend and resume. The default functions are provided for
TCP, UDP and unix, and they are pass-through to the receiver equivalent
as it used to be till now. Nothing was defined for sockpair since it does
not need to suspend/resume during reloads, hence it will succeed.
include/haproxy/listener.h
include/haproxy/protocol-t.h
src/listener.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c