Mosquitto should not send CONNACK on re-authentication with wrong credentials. #2339
Labels
Component: mosquitto-broker
Status: Completed
Nothing further to be done with this issue, it can be closed by the requestor or committer.
Type: Bug
Milestone
When re-authentication fails due to bad credentials, mosquitto sends a CONNACK message with reason code 135. This is the second CONNACK within the connection. That is explicitly prohibited by conformance statement MQTT-3.2.0-2 ("The Server MUST NOT send more than one CONNACK in a Network Connection"). As I understand it, a broker is supposed to send a DISCONNECT message (with reason code 135) in this situation.
Something like reauth_not_authorized.diff.txt might fix it.
The issue has been checked against the latest check-in of the master branch (9afeeb1, version 2.0.12) on linux.
The text was updated successfully, but these errors were encountered: