Comments (7)
The timeouts appear to be quite short in the occasions I observed -- maybe a couple seconds?
A little more detail about the specifics in what I have observed:
- All our connections use the context we created for the swarm, which is a background context with a cancellation, which we use when we want to shutdown networking. There is no timeout attached.
- I have noticed that when I hit the problem, closing the Host and creating a new instance also fails to connect. But if I let it retry (after 5 min -- it's a heartbeat for directory registrations in this particular case), it successfully connects. So the condition does not appear to be terminal.
from go-libp2p.
@parkan roughly how long are the timeouts? Having an approximate number would help narrow this down significantly
from go-libp2p.
Another data point, this time with an actual timeout measurement.
I am seeing repeated connection problems with dial attempt failed: context deadline exceeded
, so I did a time measurement and it comes to around 10sec:
$ time mcclient id QmeiY2eHMwK92Zt6X4kUUC3MsjMmVb2VnGZ17DhnhRPCEQ
Not Found
Error: dial attempt failed: context deadline exceeded
real 0m10.498s
user 0m0.320s
sys 0m0.018s
All this is happening with the nodes involved (icmp) pinging happily and no unusual network conditions.
from go-libp2p.
Also verified that I can connect to the node with telnet and get the go-multistream header back.
from go-libp2p.
I also restarted the node I am trying to connect, and I still can't connect.
from go-libp2p.
Digging further, seems there is a legitimate networking problem with the node in this case (ssh yes, but no pings or telnet to the multistream port from my network location).
from go-libp2p.
I think we can ascribe my problems today at legitimate networking issues.
from go-libp2p.
Related Issues (20)
- Peerstore reports empty protocolID list HOT 18
- Can quic.Transport be directly connected? HOT 13
- `p2p/security/tls`: does not handle simultaneous closes HOT 3
- version 0.32.1 mdns issue HOT 4
- WebRTC: Tracking Issue HOT 2
- Make WebRTC non experimental HOT 1
- proper support for IPv6 link-local addresses HOT 7
- go-libp2p-asn-util adds ~4MiB to builds and increases build times, even in configurations where it will never be used HOT 5
- 如何搭建dht服务器,没有找到相关的代码,请问有没有热心大佬给个地址或者方法 HOT 3
- Auto Relay Doesn't Work in libp2p Network HOT 2
- Use the same port for TCP and WebSocket HOT 5
- Add Transient as a "connectedness" state HOT 2
- Per-connection protocol list HOT 2
- \network\rcmgr.go:166:27: network.NullResourceManager (type) is not an expression HOT 2
- Filter out undefined/reserved addresses HOT 13
- v0.34
- Drop support for go1.20 HOT 2
- Deprecate or improve documentation for crypto.GenerateEKeyPair HOT 3
- Why the pubsub doesn't work in my case? HOT 4
- swarm.DialPeer and host.Connect should fail when no direct/unlimited connection is available to the peer
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from go-libp2p.