summaryrefslogtreecommitdiff
path: root/node/Network.hpp
diff options
context:
space:
mode:
authorAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-24 14:28:16 -0700
committerAdam Ierymenko <adam.ierymenko@gmail.com>2016-08-24 14:28:16 -0700
commitccea3d04d63e39a020e140b348aa87e272747c7e (patch)
tree9c8dbbea3a62ecffa00cb0083dded59fba80d181 /node/Network.hpp
parent90bd3e07a0f8f2c2b0657e8cbf0b842f683b7f9c (diff)
downloadinfinitytier-ccea3d04d63e39a020e140b348aa87e272747c7e.tar.gz
infinitytier-ccea3d04d63e39a020e140b348aa87e272747c7e.zip
Push NETWORK_CONFIG_REFRESH on POSTs to /member/... in controller.
Diffstat (limited to 'node/Network.hpp')
-rw-r--r--node/Network.hpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/node/Network.hpp b/node/Network.hpp
index 37154dc7..382b16aa 100644
--- a/node/Network.hpp
+++ b/node/Network.hpp
@@ -249,6 +249,10 @@ public:
/**
* Causes this network to request an updated configuration from its master node now
+ *
+ * There is a circuit breaker here to prevent this from being done more often
+ * than once per second. This is to prevent things like NETWORK_CONFIG_REFRESH
+ * from causing multiple requests.
*/
void requestConfiguration();
@@ -442,6 +446,7 @@ private:
NetworkConfig _config;
volatile uint64_t _lastConfigUpdate;
+ volatile uint64_t _lastRequestedConfiguration;
volatile bool _destroyed;