]> git.ipfire.org Git - thirdparty/haproxy.git/commit
CLEANUP: peers: Remove useless statements.
authorFrédéric Lécaille <flecaille@haproxy.com>
Thu, 24 Jan 2019 17:28:44 +0000 (18:28 +0100)
committerWilly Tarreau <w@1wt.eu>
Tue, 29 Jan 2019 09:29:54 +0000 (10:29 +0100)
commitbe825e5c05c3be646f7ed1ff9325017742e9330e
tree53166de10922ac69742adce36f282a5d6038b5c5
parent25e1d5e435e92f3bac51135f0579e56729676e37
CLEANUP: peers: Remove useless statements.

When implementing peer_recv_msg() we added the statements reached with
a "goto imcomplete" at the end of this function. This statements
are executed only when co_getblk() returns something <0. So they
are useless for now on, and may be safely removed. The following
section wich was responsible of sending any peer protocol messages
were reached only when co_getblk() returned 0 (no more message to
read). In this case we replace the "goto impcomplete" statement by
a "goto send_msgs" to reach this only when peer_recv_msg() returns 0.

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