1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-11-09 10:00:57 +03:00

Add DSR packet count to state and qlog.

Summary: It's useful at the end of a connection to know if we tried DSR.

Reviewed By: jbeshay

Differential Revision: D30545282

fbshipit-source-id: bbb2f3408f7a2d5666676c9e2583bf8fd9f18911
This commit is contained in:
Matt Joras
2021-08-26 14:05:40 -07:00
committed by Facebook GitHub Bot
parent 9c1b93c27c
commit 40cc0ca93e
9 changed files with 22 additions and 21 deletions

View File

@@ -4315,6 +4315,7 @@ TEST_F(
TEST_F(QuicServerTransportTest, WriteDSR) {
server->getNonConstConn().transportSettings.dsrEnabled = true;
EXPECT_EQ(server->getConn().dsrPacketCount, 0);
// Make sure we are post-handshake
ASSERT_NE(nullptr, server->getConn().oneRttWriteCipher);
// Rinse anything pending
@@ -4336,6 +4337,7 @@ TEST_F(QuicServerTransportTest, WriteDSR) {
EXPECT_TRUE(server->getConn().outstandings.packets.back().isDSRPacket);
EXPECT_CALL(*rawDSRSender, release()).Times(1);
server->resetStream(streamId, GenericApplicationErrorCode::NO_ERROR);
EXPECT_EQ(server->getConn().dsrPacketCount, 1);
}
} // namespace test