Coder Social home page Coder Social logo

Requeue packets on network error about tox HOT 4 CLOSED

tox-rs avatar tox-rs commented on May 23, 2024
Requeue packets on network error

from tox.

Comments (4)

kurnevsky avatar kurnevsky commented on May 23, 2024

tunnel_to_network returns error only if there is no session. It seems it's auxiliary method that has nothing to do with socket errors. See: https://github.com/cloudflare/boringtun/blob/e765e12613e8eb33e39e7fb0676ad5797c02c5f6/src/noise/mod.rs#L150

Or do I miss something?

from tox.

kpp avatar kpp commented on May 23, 2024

It's an example of a pattern. Instead of dropping a packet we can requeue it to try to send it when we are online again

from tox.

kurnevsky avatar kurnevsky commented on May 23, 2024

Almost all packets expire quite fast. It just doesn't make sense to store them if we can't send them immediately. The only packets that don't expire that come in mind - lossless net crypto packets. But for them we have different mechanism - we store them to a buffer and drop only when other side confirms that they are delivered. So I don't really see where we can apply it.

from tox.

kpp avatar kpp commented on May 23, 2024

TCP client - need to reconnect to the server and create a new secure session.
DHT - does not matter. We will bootstrap again
lossless net crypto packets - we have a mechanism to confirm they are delivered

Seems you are right.

from tox.

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.