Skip to content

Commit

Permalink
set ack requested flag after second resend attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
orignal committed Jan 30, 2025
1 parent adc230a commit 60d3e4d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libi2pd/SSU2Session.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -623,7 +623,8 @@ namespace transport
}
else
{
uint32_t packetNum = SendData (it->second->payload, it->second->payloadSize);
uint32_t packetNum = SendData (it->second->payload, it->second->payloadSize,
it->second->numResends > 1 ? SSU2_FLAG_IMMEDIATE_ACK_REQUESTED : 0);
it->second->numResends++;
it->second->sendTime = ts;
resentPackets.emplace (packetNum, it->second);
Expand Down

0 comments on commit 60d3e4d

Please sign in to comment.