Code Monkey home page Code Monkey logo

Comments (7)

whitequark avatar whitequark commented on May 18, 2024

Oh yeah you hit a bug; retransmit timer gets reset by ACKs whereas it should not.

Specifically, by duplicate ACKs that arrive when the window is zero length, and pass through the duplicate ACK checks because they count as keepalives.

from smoltcp.

pothos avatar pothos commented on May 18, 2024

Thanks for looking at it, now I have to read the RFCs along with the code and find out how the timer is supposed to be set and kept.

from smoltcp.

pothos avatar pothos commented on May 18, 2024

Ok, finally got it working. Besides keeping the retransmission timer there was an overflow that needed to be fixed. Preparing a PR now.

from smoltcp.

whitequark avatar whitequark commented on May 18, 2024

@pothos I'm finally making progress on this—see d1e2292 for one method I'm using to expose underlying bugs. I am afraid that your fix is hiding one of them.

from smoltcp.

whitequark avatar whitequark commented on May 18, 2024

@pothos I've integrated a test quite like your taptest in the commit 44db954. I've managed to expose one other bug as well.

from smoltcp.

whitequark avatar whitequark commented on May 18, 2024

Fixed in b247f64.

from smoltcp.

pothos avatar pothos commented on May 18, 2024

Thanks for including the fix - I am happy that the wrapping can be covered without distinction of cases ;)

from smoltcp.

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.