freifunkh / site

Freifunk Hannover specific Gluon site configuration for Firmware building.
https://hannover.freifunk.net
5 stars 5 forks source link

wgpeerselector takes too much time to recognize broken connections? #69

Open CodeFetch opened 2 years ago

CodeFetch commented 2 years ago

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.

CodeFetch commented 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.