Pump outbound context

This commit is contained in:
Jason Rhinelander 2021-11-14 15:12:29 -04:00
parent 846577a0aa
commit bce7e2e56d
1 changed files with 5 additions and 1 deletions

View File

@ -1621,7 +1621,8 @@ namespace llarp
return true;
}
void Endpoint::Pump(llarp_time_t)
void
Endpoint::Pump(llarp_time_t now)
{
FlushRecvData();
// send downstream packets to user for snode
@ -1660,7 +1661,10 @@ namespace llarp
auto router = Router();
// TODO: locking on this container
for (const auto& [addr, outctx] : m_state->m_RemoteSessions)
{
outctx->FlushUpstream();
outctx->Pump(now);
}
// TODO: locking on this container
for (const auto& [router, session] : m_state->m_SNodeSessions)
session->FlushUpstream();