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

Tag deal connections to preserve them #246

Merged
merged 1 commit into from May 11, 2020
Merged

Conversation

hannahhoward
Copy link
Collaborator

Goals

Don't drop open storage deal connections

Implementation

Libp2p's connection manager supports a tagging functionality which helps prevent connections from getting cleaned up when there are lots of them active.

This PR adds a method to do this to the storage deal stream, then pipes it through to the storage deal process so connections get tagged at the moment they become likely to stay open a long time and then untagged at close.

Unfortunately, libp2p's mock network has a connection manager that does nothing, so it's hard to test this at an actual integration level :(

Support using libp2p's connection manager tagging to preserve connections
Copy link
Contributor

@ingar ingar left a comment

Choose a reason for hiding this comment

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

Glad you know this libp2p stuff. 👍

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