mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-11-24 04:01:07 +03:00
Decode ACK_EXTENDED frame
Summary:
Add functionality for decoding the new ACK_EXTENDED frame.
Frame format:
```
ACK_EXTENDED Frame {
Type (i) = 0xB1
// Fields of the existing ACK (type=0x02) frame:
Largest Acknowledged (i),
ACK Delay (i),
ACK Range Count (i),
First ACK Range (i),
ACK Range (..) ...,
Extended Ack Features (i),
// Optional ECN counts (if bit 0 is set in Features)
[ECN Counts (..)],
// Optional Receive Timestamps (if bit 1 is set in Features)
[Receive Timestamps (..)]
}
// Fields from the existing ACK_ECN frame
ECN Counts {
ECT0 Count (i),
ECT1 Count (i),
ECN-CE Count (i),
}
// Fields from the existing ACK_RECEIVE_TIMESTAMPS frame
Receive Timestamps {
Timestamp Range Count (i),
Timestamp Ranges (..) ...,
}
Timestamp Range {
Gap (i),
Timestamp Delta Count (i),
Timestamp Delta (i) ...,
}
```
Reviewed By: sharmafb
Differential Revision: D68931149
fbshipit-source-id: 7eab52449db60fc41a5bf9aa48c0f695ccaca3f0
This commit is contained in:
committed by
Facebook GitHub Bot
parent
b45c82b884
commit
31fbb343d1
@@ -857,7 +857,8 @@ void onServerReadDataFromOpen(
|
||||
conn.readCodec->setCodecParameters(CodecParameters(
|
||||
conn.peerAckDelayExponent,
|
||||
version,
|
||||
conn.transportSettings.maybeAckReceiveTimestampsConfigSentToPeer));
|
||||
conn.transportSettings.maybeAckReceiveTimestampsConfigSentToPeer,
|
||||
conn.transportSettings.advertisedExtendedAckFeatures));
|
||||
conn.initialWriteCipher = cryptoFactory.getServerInitialCipher(
|
||||
initialDestinationConnectionId, version);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user