Browse Source

don't schedule send for first SYN reply

pull/2125/head
orignal 7 days ago
parent
commit
391e3b7814
  1. 3
      libi2pd/Streaming.cpp

3
libi2pd/Streaming.cpp

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

Loading…
Cancel
Save