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

feat: Yamux timeout #1029

Merged
merged 3 commits into from
Feb 22, 2024
Merged

feat: Yamux timeout #1029

merged 3 commits into from
Feb 22, 2024

Conversation

lchenut
Copy link
Collaborator

@lchenut lchenut commented Feb 20, 2024

This PR adds a timeout to Yamux so that it works in the same way as Mplex. Adds a couple of tests.
Fixes a bug revealed by tests where result.reset() called Future[void].reset() instead of YamuxStream.reset()

Copy link

codecov bot commented Feb 20, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7faa0fa) 83.15% compared to head (14b9ed2) 83.22%.

Additional details and impacted files

Impacted file tree graph

@@             Coverage Diff              @@
##           unstable    #1029      +/-   ##
============================================
+ Coverage     83.15%   83.22%   +0.07%     
============================================
  Files            91       91              
  Lines         15351    15362      +11     
============================================
+ Hits          12765    12785      +20     
+ Misses         2586     2577       -9     
Files Coverage Δ
libp2p/builders.nim 93.91% <100.00%> (+0.16%) ⬆️
libp2p/muxers/yamux/yamux.nim 91.42% <100.00%> (+0.75%) ⬆️

... and 4 files with indirect coverage changes

Copy link
Collaborator

@kaiserd kaiserd left a comment

Choose a reason for hiding this comment

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

Thank you! LGTM

@lchenut lchenut merged commit 349496e into unstable Feb 22, 2024
11 checks passed
@lchenut lchenut deleted the add-yamux-timeout branch February 22, 2024 09:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: done
Development

Successfully merging this pull request may close these issues.

2 participants