mirror of
https://github.com/facebookincubator/mvfst.git
synced 2025-08-06 22:22:38 +03:00
Add option to allow PTOing pure PING packets.
Summary: As in title. Without this the keepalive option is less effective since a single PING packet loss can cause issues. Reviewed By: kvtsoy Differential Revision: D63397494 fbshipit-source-id: 7ef6b6f54189609e3a96409ac9c035c475dc0569
This commit is contained in:
committed by
Facebook GitHub Bot
parent
cc3e42da5e
commit
baf0544fc1
@@ -218,6 +218,18 @@ TEST_F(QuicTransportFunctionsTest, PingPacketGoesToOPList) {
|
||||
EXPECT_FALSE(conn->pendingEvents.setLossDetectionAlarm);
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, PingPacketGoesToOPListAndLossAlarm) {
|
||||
auto conn = createConn();
|
||||
conn->transportSettings.ptoPingFrames = true;
|
||||
auto packet = buildEmptyPacket(*conn, PacketNumberSpace::AppData);
|
||||
packet.packet.frames.push_back(PingFrame());
|
||||
EXPECT_EQ(0, conn->outstandings.packets.size());
|
||||
updateConnection(
|
||||
*conn, none, packet.packet, Clock::now(), 50, 0, false /* isDSRPacket */);
|
||||
EXPECT_EQ(1, conn->outstandings.packets.size());
|
||||
EXPECT_TRUE(conn->pendingEvents.setLossDetectionAlarm);
|
||||
}
|
||||
|
||||
TEST_F(QuicTransportFunctionsTest, TestUpdateConnection) {
|
||||
auto conn = createConn();
|
||||
auto mockCongestionController =
|
||||
|
Reference in New Issue
Block a user