mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-05-19 05:41:47 +02:00
memoery pool for fragments
This commit is contained in:
parent
d530269e4f
commit
324ace103b
3 changed files with 37 additions and 12 deletions
libi2pd
|
@ -1788,7 +1788,7 @@ namespace transport
|
|||
LogPrint (eLogWarning, "SSU2: Fragment number ", fragmentNum, " exceeds ", SSU2_MAX_NUM_FRAGMENTS);
|
||||
return;
|
||||
}
|
||||
auto fragment = std::make_shared<SSU2IncompleteMessage::Fragment> ();
|
||||
auto fragment = m_Server.GetFragmentsPool ().AcquireShared ();
|
||||
memcpy (fragment->buf, buf + 5, len -5);
|
||||
fragment->len = len - 5;
|
||||
fragment->isLast = isLast;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue