1
1
Fork 0
mirror of https://github.com/oxen-io/lokinet synced 2023-12-14 06:53:00 +01:00

unconditional pump

This commit is contained in:
Jeff 2019-04-29 13:13:40 -04:00
parent 27fac68716
commit 785f1366ed

View file

@ -255,9 +255,6 @@ namespace llarp
{
if(sendq.size() >= MaxSendQueueSize)
return false;
// preemptive pump
if(sendq.size() >= MaxSendQueueSize / 8)
PumpWrite();
size_t sz = buf.sz;
byte_t* ptr = buf.base;
uint32_t msgid = m_NextTXMsgID++;
@ -273,6 +270,7 @@ namespace llarp
ptr += s;
sz -= s;
}
PumpWrite();
return true;
}