Open fabricedesre opened 2 years ago
@dignifiedquire in p2p/src/node.rs the
BitswapEvent::FindProviders
triggers aRpcMessage::ProviderRequest
with aProviderKey::Dht
only, could that be why mDNS providers discovery is not working?
No that is not the reason, this part of finding providers is only used as a fallback by bitswap to find providers if it can not find them via bitswap.
Configuration: running
iroh-one
on 2 machines on the same local network, with no p2p bootstrap peers. Discovery happens just fine over mDNS.Use the branch at https://github.com/capyloon/iroh/commit/a7c3b15f0bdc2e1a15092aab31f3afe9cc1f7b07#diff-4d226c1c8b9372b073d09fa48265e9826c6886a744b6b892eb2c2d800af9d18a to push some content to machine1with:
The CID bafkreia5so3urvs3o5mvguua7othrzg5ssz6djdwqtywrmc6m5l7h7wlnm is getting provided. Check that the CID is in store with
curl http://machine1:9050/ipfs/bafkreia5so3urvs3o5mvguua7othrzg5ssz6djdwqtywrmc6m5l7h7wlnm
Then from machine2, wait for both peer counts to reflect the mDNS discovery, and try to fetch the same CID locally:
curl http://localhost:9050/ipfs/bafkreia5so3urvs3o5mvguua7othrzg5ssz6djdwqtywrmc6m5l7h7wlnm
I see that log in machine2:
But nothing relevant on machine1, and the request times out.
@dignifiedquire in p2p/src/node.rs the
BitswapEvent::FindProviders
triggers aRpcMessage::ProviderRequest
with aProviderKey::Dht
only, could that be why mDNS providers discovery is not working?