mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
allocate smaller I2NP buffer for fragmented message. Limit number of fragments by 64
This commit is contained in:
parent
cb959ab14c
commit
771c4a0d02
2 changed files with 28 additions and 6 deletions
|
@ -45,6 +45,7 @@ namespace transport
|
|||
const float SSU2_kAPPA = 1.8;
|
||||
const size_t SSU2_MAX_OUTGOING_QUEUE_SIZE = 500; // in messages
|
||||
const int SSU2_MAX_NUM_ACK_RANGES = 32; // to send
|
||||
const uint8_t SSU2_MAX_NUM_FRAGMENTS = 64;
|
||||
|
||||
enum SSU2MessageType
|
||||
{
|
||||
|
@ -167,6 +168,8 @@ namespace transport
|
|||
int nextFragmentNum;
|
||||
uint32_t lastFragmentInsertTime; // in seconds
|
||||
std::map<int, std::shared_ptr<Fragment> > outOfSequenceFragments;
|
||||
|
||||
void AttachNextFragment (const uint8_t * fragment, size_t fragmentSize);
|
||||
};
|
||||
|
||||
// RouterInfo flags
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue