Git Product home page Git Product logo

Comments (4)

octol avatar octol commented on September 28, 2024 1

Does downgrading the panic to an error log not only kick the problem down the road? What if subsequently the entry with id frag_id is requested from self.pending_acks_data in order to update or remove it, and now multiple items with identifier frag_id exist?

Given the small range [1, 2147483647] from which set_ids are randomly chosen, would it not make sense to increase set_id from i32 (with excluded edge cases) to i64 (with excluded edge cases)? This way, at least the probability of generating a set_id collision is much reduced.

Yep that's correct. Well at least things like this shouldn't take the whole gateway down now, which is critical, but yeah there is a small small % of packets that are corrupted by this.

And also yes I agree it would be good to increase the id to 64-bit, the challenge is doing that gradually without breaking things on mainnet. So it's a little more than just changing the type

from nym.

octol avatar octol commented on September 28, 2024

Is this issue still present? At least it shouldn't panic since #4248. Although it's a bit of a mystery why this even happens in the first place ...

from nym.

tommyv1987 avatar tommyv1987 commented on September 28, 2024

Closing the ticket based upon @octol comments

from nym.

numbleroot avatar numbleroot commented on September 28, 2024

Does downgrading the panic to an error log not only kick the problem down the road? What if subsequently the entry with id frag_id is requested from self.pending_acks_data in order to update or remove it, and now multiple items with identifier frag_id exist?

Given the small range [1, 2147483647] from which set_ids are randomly chosen, would it not make sense to increase set_id from i32 (with excluded edge cases) to i64 (with excluded edge cases)? This way, at least the probability of generating a set_id collision is much reduced.

from nym.

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.