Closed
Description
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.