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

Add ping protocol support and use for keep-alive #621

Merged
merged 6 commits into from
Jun 15, 2021

Conversation

jm-clius
Copy link
Contributor

@jm-clius jm-clius commented Jun 14, 2021

This PR closes #534

It adds libp2p ping protocol support for Waku v2, mounts it on all nodes and uses ping as the underlying mechanism for keep-alive functionality.

In order to use the unstable branch of nim-libp2p, the WakuPeerStore had to be separated from the underlying libp2p PeerStore. See this comment for background. #622 keeps track of the effort to reintegrate the libp2p PeerStore into Waku v2.

@jm-clius jm-clius requested review from oskarth, staheri14, D4nte and EbubeUd and removed request for oskarth June 14, 2021 15:33
@jm-clius jm-clius marked this pull request as ready for review June 14, 2021 15:34
Copy link
Contributor

@staheri14 staheri14 left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Contributor

@oskarth oskarth left a comment

Choose a reason for hiding this comment

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

Should we mention this as a MAY in specs perhaps? For topics/connections that don't see a lot of traffic

@jm-clius
Copy link
Contributor Author

Should we mention this as a MAY in specs perhaps? For topics/connections that don't see a lot of traffic

Good idea. See vacp2p/rfc#400

@jm-clius jm-clius merged commit a044c6a into master Jun 15, 2021
@jm-clius jm-clius deleted the feat/add-ping-support branch June 15, 2021 08:55
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.

Mount /ipfs/ping/1.0.0 protocol in wakunode2
3 participants