mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
send frame when it exceeds 16K
This commit is contained in:
parent
c01fd3299f
commit
c158bbe90a
2 changed files with 5 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue