mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-25 15:43:13 +03:00
Maitain ingress ECN counts in the AckState for writing ACKs
Summary: Keep track of ECN values in incoming packets and update the AckState that is used for echoing the counts to the peer in ACK_ECN frames. Reading and writing the ACK_ECN frames is in the next change. Reviewed By: kvtsoy Differential Revision: D54927783 fbshipit-source-id: 44471c6224ee8578aaacc0d1a1c54370ef6d2ffe
This commit is contained in:
committed by
Facebook GitHub Bot
parent
3eef6d0e55
commit
9add439090
@@ -1015,8 +1015,8 @@ void onServerReadDataFromOpen(
|
||||
}
|
||||
|
||||
auto& ackState = getAckState(conn, packetNumberSpace);
|
||||
uint64_t distanceFromExpectedPacketNum = addPacketToAckState(
|
||||
conn, ackState, packetNum, readData.udpPacket.timings);
|
||||
uint64_t distanceFromExpectedPacketNum =
|
||||
addPacketToAckState(conn, ackState, packetNum, readData.udpPacket);
|
||||
if (distanceFromExpectedPacketNum > 0) {
|
||||
QUIC_STATS(conn.statsCallback, onOutOfOrderPacketReceived);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user