Giter Club home page Giter Club logo

Comments (7)

vyzo avatar vyzo commented on May 16, 2024 1

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.

whyrusleeping avatar whyrusleeping commented on May 16, 2024

@parkan roughly how long are the timeouts? Having an approximate number would help narrow this down significantly

from go-libp2p.

vyzo avatar vyzo commented on May 16, 2024

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.

vyzo avatar vyzo commented on May 16, 2024

Also verified that I can connect to the node with telnet and get the go-multistream header back.

from go-libp2p.

vyzo avatar vyzo commented on May 16, 2024

I also restarted the node I am trying to connect, and I still can't connect.

from go-libp2p.

vyzo avatar vyzo commented on May 16, 2024

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.

vyzo avatar vyzo commented on May 16, 2024

I think we can ascribe my problems today at legitimate networking issues.

from go-libp2p.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.