eclipse-paho / eclipse-paho/paho.mqtt.java

MQTTv5 the client should send DISCONNECT before closing the connecton

Open
#538 2 comments 0 reactions 0 assignees View on GitHub
More Information Required
Dominant language
Java
Stars
2.3k
Forks
919
PR merge metrics
No merged PRs in 30d

Description

Although the paho java client allows the client application to send a DISCONNECT before closing the network connection, paho itself does not do so before closing the connection. The whole point of the reason codes is to allow the peer to record the reason for a connection close.

In almost all cases where a connection has been established, the client should send a DISCONNECT in any case before doing a connection close.

- [ ] Bug exists Release Version 1.2.0 ( Master Branch)
- [ ] Bug exists in MQTTv3 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)
- [x] Bug exists in MQTTv5 Client on Snapshot Version 1.2.1-SNAPSHOT (Develop Branch)

If this is a bug regarding the Android Service, please raise the bug here instead: https://github.com/eclipse/paho.mqtt.android/issues/new

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.