GithubHelp home page GithubHelp logo

Comments (9)

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

First attempt: Before sending a recovery request, wait 0-0.25s

This may give enough delay to work correctly.

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

This seems to work (on localhost) ~2/3 times on python3.5.

Not good enough.

Next approach:

If connection was outgoing, wait 0.25s to send recovery request.

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

Again, seems to work 2/3 times.

Next approach:

Only send recovery request if your connection was outgoing. You accept incoming connections indiscriminately, so it's up the one reaching out to repair things.

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

This fails on SSL and Plaintext. Not a good solution. Strangely seems to work under plain disconnect, though, which seems to indicate that it matters whether it's in a routing table.

Pastebin of output in case this becomes relevant again

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

Rerunning the test, this time flagging both outputs, crash test succeeds, disconnect test fails. This is odd.

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

Moving this flag check makes one or the other fail, every time, it seems. So the question becomes, what's the root cause of SSL failing but not Plaintext?

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

To be clear about this, the method that I'm changing is mesh_daemon.mainloop

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

Possibly fixed in bbaaed5, though for the life of me I don't know why.

from p2p-project.

LivInTheLookingGlass avatar LivInTheLookingGlass commented on July 30, 2024

Yeah, it didn't fix it on any system but my own, and I don't understand why it worked on mine.

from p2p-project.

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.