mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-04-28 11:47:48 +02:00
limit number of incoming streams. don't request LeaseSet for incoming stream
This commit is contained in:
parent
e574354896
commit
a411fff1d9
2 changed files with 28 additions and 11 deletions
|
@ -66,6 +66,7 @@ namespace stream
|
|||
const int MIN_SEND_ACK_TIMEOUT = 2; // in milliseconds
|
||||
const int SYN_TIMEOUT = 200; // how long we wait for SYN after follow-on, in milliseconds
|
||||
const size_t MAX_PENDING_INCOMING_BACKLOG = 1024;
|
||||
const size_t MAX_NUM_INCOMING_STREAMS = 2048;
|
||||
const int PENDING_INCOMING_TIMEOUT = 10; // in seconds
|
||||
const int MAX_RECEIVE_TIMEOUT = 20; // in seconds
|
||||
const uint16_t DELAY_CHOKING = 60000; // in milliseconds
|
||||
|
@ -262,6 +263,7 @@ namespace stream
|
|||
int32_t m_PreviousReceivedSequenceNumber;
|
||||
int32_t m_LastConfirmedReceivedSequenceNumber; // for limit inbound speed
|
||||
StreamStatus m_Status;
|
||||
bool m_IsIncoming;
|
||||
bool m_IsAckSendScheduled;
|
||||
bool m_IsNAcked;
|
||||
bool m_IsFirstACK;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue