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

Slow ipfs connection due to tcp/utp incongruence #2771

Closed
PyroLagus opened this issue May 31, 2016 · 1 comment · Fixed by libp2p/go-libp2p#63
Closed

Slow ipfs connection due to tcp/utp incongruence #2771

PyroLagus opened this issue May 31, 2016 · 1 comment · Fixed by libp2p/go-libp2p#63
Labels
kind/bug A bug in existing code (including security flaws) topic/libp2p Topic libp2p

Comments

@PyroLagus
Copy link

So, I tried accessing an mp3 file I added in ipfs over the gateway, but it didn't work. After @whyrusleeping accessed the file, the gateway followed suit, so I suppose the gateway retrieved the file from whyrusleeping's node because it couldn't connect to mine.

Now, whyrusleeping informed me that it took long to connect to my node, and that other nodes were apparently trying to connect to me via utp even though I don't have utp enabled.

ipfs version 0.4.2

OS: ArchLinux on newest updates. Stock kernel x86_64 Linux 4.5.4-1-ARCH. If it matters, the only changes I did to the setup network wise (except for the usual wifi stuff) was install and enable unbound.

output of ipfs config Addresses:

{
"API": "/ip4/127.0.0.1/tcp/5001",
"Gateway": "/ip4/127.0.0.1/tcp/8080",
"Swarm": [
"/ip4/0.0.0.0/tcp/4001",
"/ip6/::/tcp/4001"
]
}

@whyrusleeping
Copy link
Member

an ipfs dht findpeer shows a large number of utp addresses for your peer. I Think that the cause of this is our assumption that if you dial someone on a given transport, that you have a listener for that transport. I'll work this into libp2p soon and report back when its fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug A bug in existing code (including security flaws) topic/libp2p Topic libp2p
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants