Skip to content

Commit

Permalink
more SYN resend attempts for outgoing stream
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Nov 18, 2024
1 parent 86080b2 commit 5d5970b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libi2pd/Streaming.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 5d5970b

Please sign in to comment.