-
Type:
Improvement
-
Status: Closed
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: None
-
Fix Version/s: None
-
Component/s: core
-
Labels:None
-
Environment:
MQTT Server
-
Proposal:
-
Resolution:
If the Connect flags indicate that the user name exists but none is present in the payload treat this as a malformed CONNECT packet and disconnect the client.
See issue-8 as to whether a connack is flowed.
This is the current documentation in the working draft, which was copied from the 3.1 specification:
"If the password flag is set but the password is not present the server MUST disconnect the TCP socket" which eventually is because of a malformed CONNECTpacket.
I think the client should be informed with a error code from Server, through CONNACK before doing a abrupt DISCONNECT