]> git.meshlink.io Git - meshlink/commit
Don't reset the UDP SPTPS session when a node becomes reachable.
authorGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 13:40:34 +0000 (15:40 +0200)
committerGuus Sliepen <guus@meshlink.io>
Sun, 11 Oct 2020 13:40:34 +0000 (15:40 +0200)
commit77315aaa984e9a5821cf3ddbf3017db98204728c
tree56d06412e719a6c30c031fd12434b773992cf333
parent1754bc2c1e992e7d9e8da2f392bbed9e2324bf9f
Don't reset the UDP SPTPS session when a node becomes reachable.

Only do this when it becomes unreachable. This fixes an issue where right
after a meta-connection is established, the initiator sends a proactive
REQ_KEY, before the peer really becomes reachable according to the graph.
When the latter happened, it would reset the session so far, causing a new
REQ_KEY to be sent, which could cross the ANS_KEY from the peer. This would
resolve itself after a few seconds, but causes an unnecessary delay that is
easy to trigger.
src/graph.c