]> git.ipfire.org Git - thirdparty/haproxy.git/commit
MINOR: peers: Start learning for local peer before receiving messages
authorChristopher Faulet <cfaulet@haproxy.com>
Wed, 24 Apr 2024 18:55:23 +0000 (20:55 +0200)
committerChristopher Faulet <cfaulet@haproxy.com>
Thu, 25 Apr 2024 16:29:57 +0000 (18:29 +0200)
commit45f46987258f051da7b2903fbd99ca154c35489b
tree0a08754ae42f0a5184fe9d1b399f0d879e63a065
parentc904f7b4402b397751460b8d269950c111ce4020
MINOR: peers: Start learning for local peer before receiving messages

A local peer assigned for leaning can immediately start to learn, without
sending any request. So we can do that first, before receiving
messages. This way, only PEER_LR_ST_PROCESSING state is evaluating when
received messages are processed.

In addition, when the resync request is sent, we are sure it is for a remote
peer.
src/peers.c