mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-29 03:41:11 +03:00
Do not add ack frames to packet when it was rebuilt in cloning scheduler
Summary: We may end up writing acks after a length-less stream frame and it will be considered garbage data by the peer. The acks will be written later as usual, outside of cloning scheduler. Reviewed By: mjoras Differential Revision: D35561912 fbshipit-source-id: 9334523b984870fa525c856a504ae7d2ae4f34c3
This commit is contained in:
committed by
Facebook GitHub Bot
parent
2f4b66bb64
commit
d31df23ca5
@ -887,14 +887,6 @@ SchedulingResult CloningScheduler::scheduleFramesForPacket(
|
||||
// Rebuilder will write the rest of frames
|
||||
auto rebuildResult = rebuilder.rebuildFromPacket(outstandingPacket);
|
||||
if (rebuildResult) {
|
||||
if (conn_.version.has_value() &&
|
||||
conn_.version.value() == QuicVersion::MVFST_EXPERIMENTAL2) {
|
||||
// Check if we have any acks pending and write those into the cloned
|
||||
// packet as well.
|
||||
if (frameScheduler_.hasPendingAcks()) {
|
||||
frameScheduler_.writeNextAcks(*internalBuilder);
|
||||
}
|
||||
}
|
||||
return SchedulingResult(
|
||||
std::move(rebuildResult), std::move(*internalBuilder).buildPacket());
|
||||
} else if (
|
||||
|
Reference in New Issue
Block a user