Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Make send of DISCONNECT packet optional on disconnect() #1500

Open
fpagliughi opened this issue Jul 5, 2024 · 0 comments
Open

Make send of DISCONNECT packet optional on disconnect() #1500

fpagliughi opened this issue Jul 5, 2024 · 0 comments
Milestone

Comments

@fpagliughi
Copy link
Contributor

A while back there was an issue on the Paho C++ repo requesting that client not send a DISCONNECT when it gets destroyed:

eclipse-paho/paho.mqtt.cpp#372

I guess since, technically, the sending of the DISCONNECT packet is optional according to the spec, the sending of the DISCONNECT packet could be made optional in the libary, right? Perhaps add a boolean field to the MQTTAsync_disconnectOptions struct, like int sendDisconnect which would default to 1 (true), but could be set 0/false by the user.

Then, the library would just shut down the connection without sending the DISCONNECT packet.

@icraggs icraggs added this to the 1.4.0 milestone Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants