From 62da7e67b64712fc5cfce771ff944057abff705b Mon Sep 17 00:00:00 2001 From: Adam Ierymenko Date: Fri, 3 Oct 2014 22:30:10 -0700 Subject: Add some rate limiting to implicit gathers, and always send multicasts to at least one supernode so they can broadcast to old peers (temporary). --- node/Multicaster.hpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'node/Multicaster.hpp') diff --git a/node/Multicaster.hpp b/node/Multicaster.hpp index 1fba5f64..6c117a10 100644 --- a/node/Multicaster.hpp +++ b/node/Multicaster.hpp @@ -72,9 +72,10 @@ private: struct MulticastGroupStatus { - MulticastGroupStatus() : lastExplicitGather(0) {} + MulticastGroupStatus() : lastExplicitGather(0),lastImplicitGather(0) {} - uint64_t lastExplicitGather; // time we last gathered members explicitly + uint64_t lastExplicitGather; + uint64_t lastImplicitGather; std::list txQueue; // pending outbound multicasts std::vector members; // members of this group }; -- cgit v1.2.3