]> git.meshlink.io Git - meshlink/commit
When a new connection is activated, terminate any pending connections to the same...
authorGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 14:16:31 +0000 (16:16 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 14:16:31 +0000 (16:16 +0200)
commit7ce3c30b3e5aa9505a103291455827eb4cda65a7
tree85e8a67972929bbd4896d1b177396a0aacc6847a
parent77315aaa984e9a5821cf3ddbf3017db98204728c
When a new connection is activated, terminate any pending connections to the same peer.

This prevents issues mainly in the test suite where peers try to connect to
each other simultaneously, and have to terminate one of the connections.
Before both connections would succeed, and both would be terminated, leading
to a loop of reconnections until enough randomness got in to break the tie.
src/protocol_auth.c