]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Add new functions to send code and reduce the I/O handler.
authorFrédéric Lécaille <flecaille@haproxy.com>
Tue, 22 Jan 2019 16:26:50 +0000 (17:26 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Jan 2019 09:29:54 +0000 (10:29 +0100)
commit87f554c9fb7d721820352d84e7811e813c2dc655
tree9b4a31b33fb52fa418908582ff8d4864611fa3bf
parentec44ea8692cb86b5bd34be05c04d0d5371ad9325
MINOR: peers: Add new functions to send code and reduce the I/O handler.

This patch reduces the size of the peer I/O handler implementing
a new function named peer_send_updatemsg() which uses the already
implement peer_prepare_updatemsg(), then ci_putblk().
Reuse the code used to implement peer_send_(ack|swith)msg() function
especially the more generic function peer_send_msg().

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