fix testnet

pull/187/head
Jeff Becker 6 years ago
parent d626b26b30
commit ec57c72e08
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -1088,7 +1088,7 @@ namespace llarp
llarp::LogDebug("got message ", msgid, " from ", remoteAddr);
result = parent->HandleMessage(this, buf);
// get rid of message buffer
itr = m_RecvMsgs.erase(itr);
m_RecvMsgs.erase(itr);
}
return result;
}

@ -303,7 +303,8 @@ namespace llarp
Builder::HandlePathBuildTimeout(Path* p)
{
// linear backoff
buildIntervalLimit += 1000;
static constexpr llarp_time_t MaxBuildInterval = 10 * 1000;
buildIntervalLimit = std::max(1000 + buildIntervalLimit, MaxBuildInterval);
PathSet::HandlePathBuildTimeout(p);
}

@ -849,7 +849,7 @@ namespace llarp
llarp::ILinkLayer *
Router::GetLinkWithSessionByPubkey(const llarp::RouterID &pubkey)
{
if(outboundLink->HasSessionTo(pubkey))
if(outboundLink && outboundLink->HasSessionTo(pubkey))
return outboundLink.get();
for(const auto &link : inboundLinks)
{

@ -221,7 +221,7 @@ namespace llarp
continue;
byte_t tmp[1024] = {0};
auto buf = StackBuffer< decltype(tmp) >(tmp);
if(!SendToServiceOrQueue(introset.A.Addr().data(), buf,
if(!SendToServiceOrQueue(introset.A.Addr().data().data(), buf,
eProtocolText))
{
llarp::LogWarn(Name(), " failed to send/queue data to ",

Loading…
Cancel
Save