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

Introduce RecvStream::received_reset #1873

Merged
merged 2 commits into from
May 22, 2024
Merged

Introduce RecvStream::received_reset #1873

merged 2 commits into from
May 22, 2024

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented May 19, 2024

Fixes #1870. I'm pretty sure I handled the state cleanup and flow control implications properly, but close review desired there all the same.

quinn/src/recv_stream.rs Outdated Show resolved Hide resolved
Copy link

@MOZGIII MOZGIII left a comment

Choose a reason for hiding this comment

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

Looks good

quinn-proto/src/connection/streams/mod.rs Outdated Show resolved Hide resolved
quinn/src/recv_stream.rs Outdated Show resolved Hide resolved
quinn/src/recv_stream.rs Show resolved Hide resolved
quinn/src/recv_stream.rs Show resolved Hide resolved
Improves symmetry with `WriteError::Stopped`. The proto layer can't
provide this behavior because it discards stream state, but we have
our own application-owned state and need to defer error reporting
sometimes anyway, so we might as well make this more intuitive.
@Ralith
Copy link
Collaborator Author

Ralith commented May 22, 2024

Forgot to actually queue a MAX_STREAM_ID when needed after calling stream_freed in proto; fixed.

@Ralith Ralith merged commit fc22ddd into main May 22, 2024
8 checks passed
@Ralith Ralith deleted the recv-reset branch May 22, 2024 21:41
@Ralith Ralith changed the title Introduce RecvStream::reset Introduce RecvStream::received_reset May 24, 2024
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.

API for awaiting for stream reset on the reader
3 participants