Browse Source

handle plain ack with options

pull/2101/head
orignal 1 month ago
parent
commit
699e17b594
  1. 11
      libi2pd/Streaming.cpp

11
libi2pd/Streaming.cpp

@ -184,10 +184,15 @@ namespace stream @@ -184,10 +184,15 @@ namespace stream
ProcessAck (packet);
int32_t receivedSeqn = packet->GetSeqn ();
if (!receivedSeqn && !packet->GetFlags ())
if (!receivedSeqn)
{
// plain ack
LogPrint (eLogDebug, "Streaming: Plain ACK received");
uint16_t flags = packet->GetFlags ();
if (flags)
// plain ack with options
ProcessOptions (flags, packet);
else
// plain ack
LogPrint (eLogDebug, "Streaming: Plain ACK received");
m_LocalDestination.DeletePacket (packet);
return;
}

Loading…
Cancel
Save