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

Simpler and more precise ID flow control update check in Chunks #1874

Merged
merged 2 commits into from
May 22, 2024

Conversation

Ralith
Copy link
Collaborator

@Ralith Ralith commented May 19, 2024

Noticed this looked like a redundant approximation while working on #1873. Careful review desired. The original logic here seems to date back to 2021 or earlier, but e.g. a3b35f9 looks like a somewhat shorter-sighted hack around this same quirk. See commit description for additional rationale.

Bi-directional streams might not be freed immediately on reading to
end or receiving a reset, and `StreamsState::stream_freed` already
performs the exact accounting required for this case when we call it
on entering Finished or Reset state.
@Ralith Ralith force-pushed the recv-cleanup-2 branch 2 times, most recently from a5072b6 to 856441f Compare May 22, 2024 20:52
quinn-proto/src/connection/streams/state.rs Outdated Show resolved Hide resolved
@djc
Copy link
Member

djc commented May 22, 2024

Nice!

@Ralith Ralith merged commit 94ba082 into main May 22, 2024
8 checks passed
@Ralith Ralith deleted the recv-cleanup-2 branch May 22, 2024 21:01
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