Merge pull request #899 from majestrate/fix-path-build-2019-11-03

make path builds work
pull/900/head
Jeff 5 years ago committed by GitHub
commit 820f69549f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -163,7 +163,7 @@ namespace llarp
bool
InboundMessage::ShouldSendACKS(llarp_time_t now) const
{
return (now > m_LastACKSent && now - m_LastACKSent > 1000);
return now > m_LastACKSent + (Session::DeliveryTimeout / 4);
}
bool

@ -596,6 +596,14 @@ namespace llarp
}
}
SendMACK();
if(m_EncryptNext && !m_EncryptNext->empty())
{
m_Parent->QueueWork(
[self = shared_from_this(), data = std::move(m_EncryptNext)] {
self->EncryptWorker(data);
});
m_EncryptNext = nullptr;
}
}
void

@ -113,7 +113,7 @@ namespace llarp
{
return path->HandleDownstream(llarp_buffer_t(X), Y, r);
}
llarp::LogWarn("unhandled downstream message");
llarp::LogWarn("unhandled downstream message id=", pathid);
return false;
}
} // namespace llarp

@ -619,7 +619,7 @@ namespace llarp
Path::HandlePathLatencyMessage(const routing::PathLatencyMessage& msg,
AbstractRouter* r)
{
auto now = r->Now();
const auto now = r->Now();
MarkActive(now);
if(msg.L == m_LastLatencyTestID)
{

Loading…
Cancel
Save