Giter Site home page Giter Site logo

Comments (3)

embhorn avatar embhorn commented on July 17, 2024

Hello @Daniel-Gruber

Thanks for contacting wolfSSL. The wolfMQTT client sets IO callbacks in wolfSSL, that in turn use the read and write functions defined in mqttnet.c. In this way, the timeout values are used (as long as WOLFMQTT_NO_TIMEOUT is not defined).

Thanks,
Eric Blankenhorn
wolfSSL Support

from wolfmqtt.

mh-ba-dg avatar mh-ba-dg commented on July 17, 2024

Ok, but that means that only actual transmissions are guarded by the timeout.
The case that mqtt is waiting for an answer of the server, is not guarded by the timeout. And therefore, when the server is never sending an answer, one will receive CONTINUE forever.

Or am I missing something? If the timeout is not meant for that case, a hint somewhere in the documentary would be nice.

But I would prefer if the timeout is guarding the whole publishing process and not just the transmission part :-)

from wolfmqtt.

embhorn avatar embhorn commented on July 17, 2024

HI @Daniel-Gruber

I am circling back through older issues... There is a client timeout, such that the client should send a ping request packet to keep the connection alive. If the broker does not respond with a ping response before the command timeout, the connection should be closed.

from wolfmqtt.

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.