Open CodeFetch opened 2 years ago
@lemoer As we also need some kind of "automatic balancer" for distributing the WireGuard nodes among the supernodes, it is crucial to have a way to allow a fast reconnect if one "kicks" nodes. Therefore it would nice to add a check on when the received bytes changed and not only on the handshakes.
According to the code it looks like wgpeerselector checks on the connection status every 5 seconds. A connection is seen as broken if there was no handshake in the last 150 seconds. Strangely it appears to take much longer (5-10 minutes) until nodes reconnect. This should be investigated.