GithubHelp home page GithubHelp logo

Comments (7)

uklotzde avatar uklotzde commented on July 24, 2024 4

Due to this serious panic issue I have decided to yank v0.12.0. Not recommended for production use.

from tokio-modbus.

uklotzde avatar uklotzde commented on July 24, 2024 1

I'll prepare a proposal.

from tokio-modbus.

uklotzde avatar uklotzde commented on July 24, 2024

@creberust Any ideas how to handle those cases?

We probably need to add a new error variant that allows clients to take care of handling those errors.

from tokio-modbus.

uklotzde avatar uklotzde commented on July 24, 2024

#248 (comment)

Looks like some paths are marked as unreachable, although they could be reached if a server sends an invalid/unexpected response.

from tokio-modbus.

creberust avatar creberust commented on July 24, 2024

Hi,

We can remove the unreachable! parts, but we need to add an Error variant, or return an io::Error ?

I think we can return an std::io::Error with ErrorKind::InvalidData in case of Request/Response mismatch. I don't know how you handled it before ?

Would it be simple for you @gustavowd to handle the Error with this ?

from tokio-modbus.

uklotzde avatar uklotzde commented on July 24, 2024

Please review and test #254 thoroughly! ...because I would like to avoid another breaking change.

from tokio-modbus.

gustavowd avatar gustavowd commented on July 24, 2024

Hi,

We can remove the unreachable! parts, but we need to add an Error variant, or return an io::Error ?

I think we can return an std::io::Error with ErrorKind::InvalidData in case of Request/Response mismatch. I don't know how you handled it before ?

Would it be simple for you @gustavowd to handle the Error with this ?

I beleive that @uklotzde proposal solves the issue. Yes, it is simple to handle the error with a returning error.

from tokio-modbus.

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.