Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

implement reliable reset extension #550

Draft
wants to merge 11 commits into
base: master
Choose a base branch
from
Draft

Conversation

kazuho
Copy link
Member

@kazuho kazuho commented Mar 26, 2023

As proposed in https://marten-seemann.github.io/draft-seemann-quic-reliable-stream-reset/draft-seemann-quic-reliable-stream-reset.html.

Changes to the state machine can be found in 76ac2e0.

The sender design is, when a reliable reset is requested, pretend as if the stream was closed at current Final Size (i.e., amount of data that have already left the sender). But instead of sending FIN, send a RELIABLE_RESET_STREAM frame with the Reliable Size field set to the Final Size.

On the receiver-side, the reset signal is surfaced using the same API (i.e., on_receive_reset). But instead of clearing receive state (i.e., list of byte blocks that have been received), we continue running the receive state machinery until all bytes up to min(FinalSize, ReliableSize) have been received.

@kazuho kazuho marked this pull request as draft March 26, 2023 02:03
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