1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-31 04:44:13 +00:00

don't schedule send for first SYN reply

This commit is contained in:
orignal 2024-11-17 17:29:04 -05:00
parent 72a39609ed
commit 391e3b7814

View File

@ -705,7 +705,8 @@ namespace stream
void Stream::SendBuffer ()
{
ScheduleSend ();
if (m_RemoteLeaseSet) // don't scheudle send for first SYN for incoming stream
ScheduleSend ();
auto ts = i2p::util::GetMillisecondsSinceEpoch ();
int numMsgs = m_WindowSize - m_SentPackets.size ();
if (numMsgs <= 0 || !m_IsSendTime) // window is full