mirror of
https://github.com/zerotier/ZeroTierOne.git
synced 2025-06-14 21:28:17 +00:00
Use circuit breaker only for requests.
This commit is contained in:
@ -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)
|
||||
|
Reference in New Issue
Block a user