Skip to content

Conversation

Finic8
Copy link

@Finic8 Finic8 commented Aug 7, 2025

This adds the qlog event definitions for Careful Resume according to the draft.

@Finic8 Finic8 requested a review from a team as a code owner August 7, 2025 14:33
@@ -276,6 +276,10 @@ impl From<EventType> for EventImportance {
RecoveryEventType::MarkedForRetransmit,
) => EventImportance::Extra,

EventType::RecoveryEventType(
RecoveryEventType::CarefulResumePhaseUpdated,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This isn't strictly a recovery event in qlog terms (although its somewhat complicated by the this crate lagging behind the latest specs.

On balance, I think it would be better to define a different EventType for careful resume. I.e. defining a separate enum in qlog/src/events/quic.rs

/// When sender has confirmed the RTT, has received an ACK for the initial
/// data without reported congestion and has more data to send than the CWND
/// would allow.
#[serde(rename = "cwnd_limited")]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pub first_unvalidated_packet: u64,
pub last_unvalidated_packet: u64,
pub congestion_window: Option<u64>,
pub ssthresh: Option<u64>,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

spec says all these are u32, not u64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants