Skip to content

fix!: use libp2p ping instad of kad ping #3074

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

Merged
merged 4 commits into from
Apr 9, 2025

Conversation

achingbrain
Copy link
Member

@achingbrain achingbrain commented Apr 9, 2025

The kad-dht spec says:

PING: Deprecated message type replaced by the dedicated ping protocol. Implementations may still handle incoming PING requests for backwards compatibility. Implementations must not actively send PING requests.

Switch to using @libp2p/ping instead of KAD-DHT PING messages to be compliant with the spec.

Incoming KAD-DHT PING messages are still supported.

Refs: #3058
Fixes: #3072

BREAKING CHANGE: @libp2p/kad-dht now depends on @libp2p/ping - please configure this in your service map

Change checklist

  • I have performed a self-review of my own code
  • I have made corresponding changes to the documentation if necessary (this includes comments as well)
  • I have added tests that prove my fix is effective or that my feature works

The [kad-dht spec](s://github.com./libp2p/specs/tree/master/kad-dht)
says:

> PING: Deprecated message type replaced by the dedicated ping protocol. Implementations may still handle incoming PING requests for backwards compatibility. Implementations must not actively send PING requests.

Switch to using `@libp2p/ping` instead of KAD-DHT `PING` messages to
be compliant with the spec.

BREAKING CHANGE: `@libp2p/kad-dht` now depends on `@libp2p/ping` - please configure this in your service map
@achingbrain achingbrain requested a review from a team as a code owner April 9, 2025 11:35
@achingbrain achingbrain merged commit 4f37aff into main Apr 9, 2025
44 of 47 checks passed
@achingbrain achingbrain deleted the fix/use-libp2p-ping-instead-of-kad-ping branch April 9, 2025 14:22
@achingbrain achingbrain mentioned this pull request Apr 9, 2025
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.

DHT ping failing when pinging a rust peer
1 participant