mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-02-20 17:52:46 +00:00
Use circuit breaker only for requests.
This commit is contained in:
parent
f0fcd222a1
commit
1b10d3413a
@ -488,7 +488,7 @@ void EmbeddedNetworkController::request(
|
||||
|
||||
const uint64_t now = OSUtils::now();
|
||||
|
||||
{
|
||||
if (requestPacketId) {
|
||||
Mutex::Lock _l(_lastRequestTime_m);
|
||||
uint64_t &lrt = _lastRequestTime[std::pair<uint64_t,uint64_t>(identity.address().toInt(),nwid)];
|
||||
if ((now - lrt) <= ZT_NETCONF_MIN_REQUEST_PERIOD)
|
||||
|
Loading…
x
Reference in New Issue
Block a user