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

multistream: Do not wait for negotiation in poll_close #319

Merged
merged 2 commits into from
Jan 29, 2025

Conversation

lexnv
Copy link
Collaborator

@lexnv lexnv commented Jan 22, 2025

This PR backports https://github.com/libp2p/rust-libp2p/pull/4019/files, effectively ensuring that our poll_close flushes any data immediately without waiting for negotiation to complete.

Closes an outdated PR: #62

cc @paritytech/networking

@lexnv lexnv self-assigned this Jan 22, 2025
@dmitry-markin
Copy link
Collaborator

A test would be nice.

@lexnv
Copy link
Collaborator Author

lexnv commented Jan 29, 2025

I think the v1_lazy_do_not_wait_for_negotiation_on_poll_close test should be enough, will have a look as a followup since I want to add a few other tests for multistream/yamux in general, thanks 🙏

@lexnv lexnv merged commit 78d934f into master Jan 29, 2025
8 checks passed
@lexnv lexnv deleted the lexnv/multistream-backport-2 branch January 29, 2025 12:03
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