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

delay completion of the receive stream until the reset error was read #4460

Merged
merged 2 commits into from Apr 26, 2024

Conversation

marten-seemann
Copy link
Member

The other part of #4428. Needed for #3522.

With this change, a receive stream is garbage collected only once the reset error was actually read (in Read), or if CancelRead was called.

@sukunrt
Copy link
Collaborator

sukunrt commented Apr 25, 2024

Same comment as #4445 (comment)

Why does the QUIC layer need to keep a reference to the closed stream? Read after completion will error.

receive_stream.go Outdated Show resolved Hide resolved
receive_stream.go Show resolved Hide resolved
@marten-seemann marten-seemann force-pushed the receive-stream-complete-after-reset-error-read branch from 11bb2e7 to 82beee9 Compare April 26, 2024 09:40
@marten-seemann marten-seemann force-pushed the receive-stream-complete-after-reset-error-read branch 3 times, most recently from 0528085 to 8495d58 Compare April 26, 2024 15:16
Copy link

codecov bot commented Apr 26, 2024

Codecov Report

Attention: Patch coverage is 95.31250% with 3 lines in your changes are missing coverage. Please review.

Project coverage is 84.73%. Comparing base (bff131e) to head (1a926a8).

Files Patch % Lines
receive_stream.go 95.31% 3 Missing ⚠️
Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4460      +/-   ##
==========================================
- Coverage   84.73%   84.73%   -0.01%     
==========================================
  Files         152      152              
  Lines       14464    14478      +14     
==========================================
+ Hits        12256    12267      +11     
- Misses       1702     1705       +3     
  Partials      506      506              

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@marten-seemann marten-seemann force-pushed the receive-stream-complete-after-reset-error-read branch from 8495d58 to 1a926a8 Compare April 26, 2024 15:31
@marten-seemann marten-seemann merged commit 4b87539 into master Apr 26, 2024
34 checks passed
@marten-seemann marten-seemann deleted the receive-stream-complete-after-reset-error-read branch April 26, 2024 15:50
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.

None yet

2 participants