From 32ec378e3b5e9c584d45c7316142c73c362dd032 Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Mon, 9 Nov 2015 18:01:23 -0800 Subject: Announce that we have peers on the cluster when we first see them to improve startup times, and add a result crunching script to tests/http. --- node/Peer.cpp | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'node/Peer.cpp') diff --git a/node/Peer.cpp b/node/Peer.cpp index de6f00c2..d728cf4c 100644 --- a/node/Peer.cpp +++ b/node/Peer.cpp @@ -187,6 +187,11 @@ void Peer::received( _sortPaths(now); } +#ifdef ZT_ENABLE_CLUSTER + if ((RR->cluster)&&(!suboptimalPath)) + RR->cluster->broadcastHavePeer(_id); +#endif + } else { /* If this path is not known, send a HELLO. We don't learn -- cgit v1.2.3