Ping supernodes on surface change, and also reset TCP flag.

This commit is contained in:
Adam Ierymenko 2015-02-02 17:02:23 -08:00
parent b7148c107d
commit eeed31b396
3 changed files with 16 additions and 8 deletions

View file

@ -468,12 +468,7 @@ Node::ReasonForTermination Node::run()
}
if (resynchronize) {
/* Send NOP to all peers on resynchronize, directly to supernodes and
* indirectly to regular nodes (to trigger RENDEZVOUS). Also clear
* learned paths since they're likely no longer valid, and close
* TCP sockets since they're also likely invalid. */
RR->sm->closeTcpSockets();
RR->topology->eachPeer(Topology::ResetActivePeers(RR,now));
} else {
/* Periodically check for changes in our local multicast subscriptions
* and broadcast those changes to directly connected peers. */