mirror of https://github.com/oxen-io/lokinet
flush quues of other paths
This commit is contained in:
parent
6f95fbfece
commit
34bc3da069
|
@ -173,6 +173,11 @@ namespace llarp
|
|||
m_LastActivity = r->Now();
|
||||
}
|
||||
FlushDownstream(r);
|
||||
for(const auto& other : m_FlushOthers)
|
||||
{
|
||||
other->FlushUpstream(r);
|
||||
}
|
||||
m_FlushOthers.clear();
|
||||
}
|
||||
else
|
||||
{
|
||||
|
@ -410,7 +415,10 @@ namespace llarp
|
|||
buf.cur = buf.base;
|
||||
// send
|
||||
if(path->HandleDownstream(buf, msg.Y, r))
|
||||
{
|
||||
m_FlushOthers.emplace(path);
|
||||
return true;
|
||||
}
|
||||
return SendRoutingMessage(discarded, r);
|
||||
}
|
||||
|
||||
|
|
|
@ -222,6 +222,8 @@ namespace llarp
|
|||
|
||||
void
|
||||
QueueDestroySelf(AbstractRouter* r);
|
||||
|
||||
std::set< HopHandler_ptr, ComparePtr< HopHandler_Ptr > > m_FlushOthers;
|
||||
};
|
||||
|
||||
inline std::ostream&
|
||||
|
|
Loading…
Reference in New Issue