1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-11 09:17:51 +00:00

more SYN resend attempts for outgoing stream

This commit is contained in:
orignal 2024-11-18 07:59:39 -05:00
parent 86080b26ae
commit 5d5970bed4

View File

@ -1338,7 +1338,7 @@ namespace stream
void Stream::ResendPacket ()
{
// check for resend attempts
if (m_SequenceNumber == 1 && m_NumResendAttempts > 0)
if (m_IsIncoming && m_SequenceNumber == 1 && m_NumResendAttempts > 0)
{
LogPrint (eLogWarning, "Streaming: SYNACK packet was not ACKed after ", m_NumResendAttempts, " attempts, terminate, rSID=", m_RecvStreamID, ", sSID=", m_SendStreamID);
m_Status = eStreamStatusReset;