Skip to content

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