1
0
mirror of https://github.com/facebookincubator/mvfst.git synced 2025-08-01 01:44:22 +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:
Matt Joras
2024-09-25 15:01:16 -07:00
committed by Facebook GitHub Bot
parent cc3e42da5e
commit baf0544fc1
5 changed files with 45 additions and 0 deletions

View File

@ -784,6 +784,9 @@ void updateConnection(
case QuicWriteFrame::Type::PingFrame:
conn.pendingEvents.sendPing = false;
isPing = true;
if (conn.transportSettings.ptoPingFrames) {
retransmittable = true;
}
break;
case QuicWriteFrame::Type::QuicSimpleFrame: {
const QuicSimpleFrame& simpleFrame = *frame.asQuicSimpleFrame();