This repository has been archived by the owner on Feb 12, 2024. It is now read-only.
Direct messages from an ipfs-go node to an ipfs-js node via the circuit-relay are unreliable and very slow #1782
Labels
exp/wizard
Extensive knowledge (implications, ramifications) required
kind/bug
A bug in existing code (including security flaws)
kind/wontfix-migration-available
P1
High: Likely tackled by core team if no one steps up
status/ready
Ready to be worked
When I set-up a web node using
ipfs-js
and try to receive direct messages from aipfs-go
node via a circuit relay, the messages usually come after a several minute delay, if at all.To summarize:
ipfs-js
node toipfs-js
node, the messages are received very quickly and reliably come in both directions.ipfs-js
node toipfs-go
node, the messages are received very quickly and reliably.ipfs-go
node toipfs-js
node, the message are received very unreliable:To be clear, I built a little chat app and even during the times when
ipfs-go
toipfs-js
messages are really flaky, I'm still always able to send reliably in the reverse. So, I'm not understanding why a direct connection can be made and messages sent properly in one direction, but why it's flaky on the other.When I start my
ipfs-js
node, I get this output:Swarm listening on /p2p-circuit/ipfs/QmQVtXNxHbywmhM9JpThgfWhTCXEe6ThsxTS9AZYamAiDZ
When I send to the
ipfs-go
node, it is via this address:/p2p-circuit/ipfs/<peer-id>
Here are some related logs on the
ipfs-go
node. It seems like it's sending to the right address of theipfs-js
node:The
ipfs-js
node is started with this config:And the
ipfs-go
node with this config related to the relay:I'm assuming both side are able to connect to the relay because:
IPFS-JS
has console output in the callback of thedialFSM
after it successfully connects to the relay.ipfs-js
toipfs-go
message would fail if both sides weren't connected to the relay... not sure if that's a correct assumption.If there's any more detail I can provide, please let me know.
The text was updated successfully, but these errors were encountered: