send frame when it exceeds 16K

This commit is contained in:
orignal 2024-02-07 19:43:29 -05:00
parent c01fd3299f
commit c158bbe90a
2 changed files with 5 additions and 1 deletions

View file

@ -1152,10 +1152,13 @@ namespace transport
msgs.push_back (msg);
s += (len + 3);
m_SendQueue.pop_front ();
if (s >= NTCP2_SEND_AFTER_FRAME_SIZE)
break; // send frame right a way
}
else if (len + 3 > NTCP2_UNENCRYPTED_FRAME_MAX_SIZE)
{
LogPrint (eLogError, "NTCP2: I2NP message of size ", len, " can't be sent. Dropped");
msg->Drop ();
m_SendQueue.pop_front ();
}
else