try doing lookup from close router, randomize when above lookup threshold

pull/1032/head
Jeff Becker 5 years ago
parent b2784dd5ec
commit 2d82e931da
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1009,9 +1009,7 @@ namespace llarp
if(lookups.count(remote) >= MaxConcurrentLookups)
{
LogWarn(Name(), " has too many pending service lookups for ",
remote.ToString());
return false;
path = PickRandomEstablishedPath();
}
using namespace std::placeholders;
@ -1263,7 +1261,7 @@ namespace llarp
}
m_state->m_PendingTraffic.erase(r);
},
5000);
5000, false);
}
bool

Loading…
Cancel
Save