spread exit traffic across all paths

pull/598/head
Jeff Becker 5 years ago
parent b9adf90fb9
commit f0e3653842
No known key found for this signature in database
GPG Key ID: F357B3B42F6F9B05

@ -248,9 +248,11 @@ namespace llarp
{
auto& msg = queue.front();
msg.S = path->NextSeqNo();
if(path->SendRoutingMessage(msg, router))
if(path && path->SendRoutingMessage(msg, router))
m_LastUse = now;
queue.pop_front();
// spread across all paths
path = PickRandomEstablishedPath(llarp::path::ePathRoleExit);
}
}
}

Loading…
Cancel
Save