1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-06 22:22:38 +03:00

Record stream details in packet metadata

Summary:
Introruced a new DetailsPerStream struct inside the outstanding packet metadata
so we can easily track all streams carrying app data within a packet and each
stream's bytes sent (both new and total).

With this, consumers can easily deduce the number of retransmitted bytes per
stream using the StreamDetails members:
newStreamBytesSent - streamBytesSent.

Reviewed By: bschlinker

Differential Revision: D28063916

fbshipit-source-id: d915514f85f24f4889cfac2f7a66bfd2d6b0a4af
This commit is contained in:
Sridhar Srinivasan
2021-05-14 11:53:40 -07:00
committed by Facebook GitHub Bot
parent 488df14977
commit 7246cd5e3c
12 changed files with 440 additions and 63 deletions

View File

@@ -114,7 +114,7 @@ PacketNum addOutstandingPacket(QuicConnectionStateBase& conn) {
nextPacketNum);
RegularQuicWritePacket packet(std::move(header));
conn.outstandings.packets.emplace_back(
packet, Clock::now(), 0, 0, false, 0, 0, 0, 0, LossState());
packet, Clock::now(), 0, 0, false, 0, 0, 0, 0, LossState(), 0);
increaseNextPacketNum(conn, PacketNumberSpace::AppData);
return nextPacketNum;
}