mirror of
https://github.com/PurpleI2P/i2pd.git
synced 2025-01-22 13:27:17 +01:00
handle immediate ack requsted flag in data message. set it in keep-alive
This commit is contained in:
parent
1fb45c4b0d
commit
dc4cd34893
|
@ -268,7 +268,7 @@ namespace transport
|
||||||
{
|
{
|
||||||
uint8_t payload[20];
|
uint8_t payload[20];
|
||||||
size_t payloadSize = CreatePaddingBlock (payload, 20, 8);
|
size_t payloadSize = CreatePaddingBlock (payload, 20, 8);
|
||||||
SendData (payload, payloadSize);
|
SendData (payload, payloadSize, SSU2_FLAG_IMMEDIATE_ACK_REQUESTED);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1503,6 +1503,7 @@ namespace transport
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
UpdateNumReceivedBytes (len);
|
UpdateNumReceivedBytes (len);
|
||||||
|
if (header.h.flags[0] & SSU2_FLAG_IMMEDIATE_ACK_REQUESTED) m_IsDataReceived = true;
|
||||||
if (!packetNum || UpdateReceivePacketNum (packetNum))
|
if (!packetNum || UpdateReceivePacketNum (packetNum))
|
||||||
HandlePayload (payload, payloadSize);
|
HandlePayload (payload, payloadSize);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue