MINOR: protocol: replace ->pause(listener) with ->rx_suspend(receiver)
authorWilly Tarreau <w@1wt.eu>
Fri, 25 Sep 2020 15:12:32 +0000 (17:12 +0200)
committerWilly Tarreau <w@1wt.eu>
Fri, 9 Oct 2020 09:27:30 +0000 (11:27 +0200)
commitcb66ea60cf60edee833551c3c4aef8b123df570c
tree93a3ff37cdf099aad9526c6d0aabdc027b49e3d1
parentd7f331c8b87fbc0aa83cdbf6c9f1d37feca2b151
MINOR: protocol: replace ->pause(listener) with ->rx_suspend(receiver)

The ->pause method is inappropriate since it doesn't exactly "pause" a
listener but rather temporarily disables it so that it's not visible at
all to let another process take its place. The term "suspend" is more
suitable, since the "pause" is actually what we'll need to apply to the
FULL and LIMITED states which really need to make a pause in the accept
process. And it goes well with the use of the "resume" function that
will also need to be made per-protocol.

Let's rename the function and make it act on the receiver since it's
already what it essentially does, hence the prefix "_rx" to make it
more explicit.

The protocol struct was a bit reordered because it was becoming a real
mess between the parts related to the listeners and those for the
receivers.
include/haproxy/proto_tcp.h
include/haproxy/proto_udp.h
include/haproxy/protocol-t.h
src/listener.c
src/proto_sockpair.c
src/proto_tcp.c
src/proto_udp.c
src/proto_uxst.c