Git Product home page Git Product logo

Comments (6)

vyzo avatar vyzo commented on July 24, 2024

There is already a timeout, it's 1min.

from go-libp2p-daemon.

cheatfate avatar cheatfate commented on July 24, 2024

@vyzo I mean is it possible to add timeout to protocol, how it was done with DHT.
Also is this timeout per session or per connection? I mean peer can have like 20 addresses and if timeout is per connection, then connection can take up to 20 minutes to understand that this peer is offline or inaccessible.
If its per session, than its not working.

from go-libp2p-daemon.

vyzo avatar vyzo commented on July 24, 2024

Oh sure, we can add a timeout parameter.

from go-libp2p-daemon.

cheatfate avatar cheatfate commented on July 24, 2024

@vyzo is dialer is trying to connect to all addresses concurrently or one by one.

from go-libp2p-daemon.

vyzo avatar vyzo commented on July 24, 2024

you can issue multiple connects in parallel, by using a different control socket for each.

from go-libp2p-daemon.

vyzo avatar vyzo commented on July 24, 2024

Timeout parameters in #27.

from go-libp2p-daemon.

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.