Skip to content

Refactor DataTracker to simplify state handling#87

Open
boivie wants to merge 1 commit intowebrtc:mainfrom
boivie:refactor-datatracker
Open

Refactor DataTracker to simplify state handling#87
boivie wants to merge 1 commit intowebrtc:mainfrom
boivie:refactor-datatracker

Conversation

@boivie
Copy link
Collaborator

@boivie boivie commented Jan 31, 2026

DataTracker previously maintained a separate seen_packet boolean to track whether the first DATA chunk had been received. This was required because RFC 9260 mandates an immediate SACK for the first received packet.

This change merges that boolean into AckState by introducing a new AckState::Initial variant, to simplify the code a bit.

DataTracker previously maintained a separate `seen_packet` boolean to 
track whether the first DATA chunk had been received. This was required
because RFC 9260 mandates an immediate SACK for the first received packet.

This change merges that boolean into `AckState` by introducing a new 
`AckState::Initial` variant, to simplify the code a bit.
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.

1 participant