1
0
mirror of https://github.com/PurpleI2P/i2pd.git synced 2025-01-18 08:29:58 +00:00

handle reset in reposnse to SYN

This commit is contained in:
orignal 2023-03-23 19:52:39 -04:00
parent 644d65054d
commit 5fee6df87a

View File

@ -154,8 +154,7 @@ namespace stream
ProcessAck (packet); ProcessAck (packet);
int32_t receivedSeqn = packet->GetSeqn (); int32_t receivedSeqn = packet->GetSeqn ();
bool isSyn = packet->IsSYN (); if (!receivedSeqn && !packet->GetFlags ())
if (!receivedSeqn && !isSyn)
{ {
// plain ack // plain ack
LogPrint (eLogDebug, "Streaming: Plain ACK received"); LogPrint (eLogDebug, "Streaming: Plain ACK received");
@ -197,7 +196,7 @@ namespace stream
shared_from_this (), std::placeholders::_1)); shared_from_this (), std::placeholders::_1));
} }
} }
else if (isSyn) else if (packet->IsSYN ())
// we have to send SYN back to incoming connection // we have to send SYN back to incoming connection
SendBuffer (); // also sets m_IsOpen SendBuffer (); // also sets m_IsOpen
} }