Skip to content

Mosquitto should not send CONNACK on re-authentication with wrong credentials. #2339

Closed
@hvxl

Description

@hvxl

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Component: mosquitto-brokerStatus: CompletedNothing further to be done with this issue, it can be closed by the requestor or committer.

    Type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions