]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Move ack, switch and definition receive code to reduce the size of...
authorFrédéric Lécaille <flecaille@haproxy.com>
Wed, 23 Jan 2019 16:31:37 +0000 (17:31 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Jan 2019 09:29:54 +0000 (10:29 +0100)
commitd27b09400c2672653b40dd534febfafe7ea87c52
tree2e577696b5a9198e52739aa31dc3e38e64a5b53a
parent168a34b45f9a49c22cc65e75a05c0c7238b0b0b1
MINOR: peers: Move ack, switch and definition receive code to reduce the size of the I/O handler.

Implement three new functions to treat peer acks, switch and
definition messages extracting the code from the big swich-case
of the peer I/O handler to give more chances to this latter to be
readable.

May be backported as far as 1.5.
src/peers.c