OASIS Mailing List ArchivesView the OASIS mailing list archive below
or browse/search using MarkMail.

 


Help: OASIS Mailing Lists Help | MarkMail Help

mqtt message

[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]


Subject: [OASIS Issue Tracker] Commented: (MQTT-6) What should a server do if it receives a connect packet with and incorrect protocol name?


    [ http://tools.oasis-open.org/issues/browse/MQTT-6?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=33342#action_33342 ] 

Nick O'Leary commented on MQTT-6:
---------------------------------

The protocol the client is using is identified in the connect packet by the combination of both the protocol name and protocol version number.

If either is missing then the packet is not properly encoded and the server should treat it as it would any other badly formed MQTT packet - drop the connection with no feedback sent.

If both are present, but either one is not recognised or supported, then that is what return code "0x01 - Unacceptable Protocol Version" was intended for. It may call it say 'protocol version' in its name, but I believe the intent was it cover both version and name.



> What should a server do if it receives a connect packet with and incorrect protocol name?
> -----------------------------------------------------------------------------------------
>
>                 Key: MQTT-6
>                 URL: http://tools.oasis-open.org/issues/browse/MQTT-6
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Improvement
>            Reporter: Andrew Banks
>
> What should a server do if it receives a connect packet with and incorrect protocol name?
> If the server receives a connect packet with no MQIsdp field present ( or its replacement field) The server could.
> 1) Disconnect the Clients TCP session
> 2) Return CONNACK  RC=X01, then disconnect the clients TCP session.
> 3) Return CONNACK with some new return code and then disconnect the clients TCP session.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://tools.oasis-open.org/issues/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]