mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-07-29 03:41:11 +03:00
Make OutstandingPacketMetadata::DetailsPerStream non-optional
Summary: As titled. Reduces confusion, as we always expect this to be populated. Differential Revision: D31887097 fbshipit-source-id: 153b05bae8abd559fe49d2c07c64d2ad0d92a809
This commit is contained in:
committed by
Facebook GitHub Bot
parent
7233c55d29
commit
82fd138b5e
@ -82,7 +82,18 @@ PacketNum addInitialOutstandingPacket(QuicConnectionStateBase& conn) {
|
||||
QuicVersion::QUIC_DRAFT);
|
||||
RegularQuicWritePacket packet(std::move(header));
|
||||
conn.outstandings.packets.emplace_back(
|
||||
packet, Clock::now(), 0, 0, true, 0, 0, 0, 0, LossState(), 0);
|
||||
packet,
|
||||
Clock::now(),
|
||||
0,
|
||||
0,
|
||||
true,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
LossState(),
|
||||
0,
|
||||
OutstandingPacketMetadata::DetailsPerStream());
|
||||
conn.outstandings.packetCount[PacketNumberSpace::Initial]++;
|
||||
increaseNextPacketNum(conn, PacketNumberSpace::Initial);
|
||||
return nextPacketNum;
|
||||
@ -101,7 +112,18 @@ PacketNum addHandshakeOutstandingPacket(QuicConnectionStateBase& conn) {
|
||||
QuicVersion::QUIC_DRAFT);
|
||||
RegularQuicWritePacket packet(std::move(header));
|
||||
conn.outstandings.packets.emplace_back(
|
||||
packet, Clock::now(), 0, 0, true, 0, 0, 0, 0, LossState(), 0);
|
||||
packet,
|
||||
Clock::now(),
|
||||
0,
|
||||
0,
|
||||
true,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
LossState(),
|
||||
0,
|
||||
OutstandingPacketMetadata::DetailsPerStream());
|
||||
conn.outstandings.packetCount[PacketNumberSpace::Handshake]++;
|
||||
increaseNextPacketNum(conn, PacketNumberSpace::Handshake);
|
||||
return nextPacketNum;
|
||||
@ -115,7 +137,18 @@ 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(), 0);
|
||||
packet,
|
||||
Clock::now(),
|
||||
0,
|
||||
0,
|
||||
false,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
0,
|
||||
LossState(),
|
||||
0,
|
||||
OutstandingPacketMetadata::DetailsPerStream());
|
||||
increaseNextPacketNum(conn, PacketNumberSpace::AppData);
|
||||
return nextPacketNum;
|
||||
}
|
||||
|
Reference in New Issue
Block a user