Giter VIP home page Giter VIP logo

Comments (4)

pylessard avatar pylessard commented on August 18, 2024

I am closing this as I am still unsure if this problem is really related to the module. I think I had a race conditions where 2 sockets were temporarily opened at the same time in different threads. I remember having similar issues in the past; I will reopen if I ever get concrete evidences that this issue is present.

from can-isotp.

hartkopp avatar hartkopp commented on August 18, 2024

Basically, I try to create a new socket using the same txid and rxid

This does not work by design!
Every endpoint needs a unique txid/rxid pair. If you open two sockets with the same txid/rxid pair (on the same host/interface) you get two identical state machines acting for the same point-to-point connection.

E.g. you send two FC frames to the sender (who will pick the first one an go for it).

from can-isotp.

pylessard avatar pylessard commented on August 18, 2024

I understand that this can't work. The goal here is to delete the previous socket before opening the new one. Seems that in some case, I can't do that. But as I said, I can't tell exactly how I get in this situation, so I believe this should be closed.

rmmod return "module is busy", which let me believe something is hanging in a undefined state.

Will provide details once I do have them

from can-isotp.

hartkopp avatar hartkopp commented on August 18, 2024

"module is busy" would only occur when there's still an open socket handled by that module.
Closing this issue for now. Tnx!

from can-isotp.

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.