Skip to content

stream: don't cancel stream after shutdown#4673

Merged
marten-seemann merged 1 commit intomasterfrom
sukun/stream-error-code
Sep 14, 2024
Merged

stream: don't cancel stream after shutdown#4673
marten-seemann merged 1 commit intomasterfrom
sukun/stream-error-code

Conversation

@sukunrt
Copy link
Copy Markdown
Collaborator

@sukunrt sukunrt commented Sep 13, 2024

This ensures that stream.Write and stream.Read return the error code
from connection close, if the stream was closed as a result of
connection close.

@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from 617a898 to dc78a0a Compare September 13, 2024 10:21
This ensures that `stream.Write` and `stream.Read` return the error code
from connection close, if the stream was closed as a result of
connection close.
@sukunrt sukunrt changed the title stream: don't stream cancel after shutdown stream: don't cancel stream after shutdown Sep 13, 2024
@codecov
Copy link
Copy Markdown

codecov Bot commented Sep 13, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 84.75%. Comparing base (672f906) to head (c6c7b20).
Report is 1 commits behind head on master.

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #4673      +/-   ##
==========================================
- Coverage   84.78%   84.75%   -0.03%     
==========================================
  Files         150      150              
  Lines       14917    14922       +5     
==========================================
  Hits        12647    12647              
- Misses       1742     1746       +4     
- Partials      528      529       +1     

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

@sukunrt sukunrt force-pushed the sukun/stream-error-code branch from dc78a0a to c6c7b20 Compare September 13, 2024 10:27
Copy link
Copy Markdown
Member

@marten-seemann marten-seemann left a comment

Choose a reason for hiding this comment

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

Nice find!

Really appreciate the meaningful test cases as well!

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