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

fix(network): close stream on timeout #1520

Merged
merged 3 commits into from
Oct 3, 2024
Merged

Conversation

themantre
Copy link
Contributor

Description

This PR closes the stream once the timeout expires.
This ensures all streams are closed, even if the receiver didn't close them.

Copy link

codecov bot commented Oct 3, 2024

Codecov Report

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

Project coverage is 75.14%. Comparing base (dcdb8bf) to head (28c5d0a).
Report is 42 commits behind head on main.

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1520      +/-   ##
==========================================
- Coverage   75.20%   75.14%   -0.07%     
==========================================
  Files         223      233      +10     
  Lines       11654    12136     +482     
==========================================
+ Hits         8764     9119     +355     
- Misses       2461     2577     +116     
- Partials      429      440      +11     

@alidevjimmy
Copy link
Contributor

LGTM

@b00f b00f merged commit ae57202 into main Oct 3, 2024
12 checks passed
@b00f b00f deleted the fix/close-stream-on-timeout branch October 3, 2024 17:39
network/stream.go Show resolved Hide resolved
network/stream.go Show resolved Hide resolved
network/stream.go Show resolved Hide resolved
network/stream.go Show resolved Hide resolved
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.

4 participants