publish new introset on path death

pull/320/head
Jeff Becker 5 years ago
parent 591f3c92a9
commit 393e70dfa6
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -972,9 +972,6 @@ namespace llarp
p->SetDropHandler(std::bind(
&Endpoint::OutboundContext::HandleDataDrop, this,
std::placeholders::_1, std::placeholders::_2, std::placeholders::_3));
p->SetDeadChecker(std::bind(&Endpoint::CheckPathIsDead, m_Endpoint,
std::placeholders::_1,
std::placeholders::_2));
}
void
@ -985,10 +982,10 @@ namespace llarp
}
bool
Endpoint::CheckPathIsDead(__attribute__((unused)) path::Path* p,
__attribute__((unused)) llarp_time_t latency)
Endpoint::CheckPathIsDead(path::Path*, llarp_time_t)
{
return false;
Logic()->queue_job({this, &HandlePathDead});
return true;
}
bool

@ -31,7 +31,7 @@ namespace llarp
{
/// minimum interval for publishing introsets
static const llarp_time_t INTROSET_PUBLISH_INTERVAL =
DEFAULT_PATH_LIFETIME / 4;
DEFAULT_PATH_LIFETIME / 8;
static const llarp_time_t INTROSET_PUBLISH_RETRY_INTERVAL = 5000;

Loading…
Cancel
Save