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] (MQTT-400) Consistency: Remaining Length field


    [ https://issues.oasis-open.org/browse/MQTT-400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=64953#comment-64953 ] 

Ken Borgendale commented on MQTT-400:
-------------------------------------

The field is in the variable header, but if the variable header is shorter than the position of this field the value of 0 is used.  This is clearly documented later in each packet definition.  The remaining length description went invalid when we made the change to add properties.  This was done after long discussions about whether the return code of 0 should be encoded or not.  The result of the discussions was that a return code of 0 could be explicitly coded, but need not be.  If you put in properties you would need to encode the return code, but again the properties on ACKs are almost always used when the return code is non-zero.

> Consistency: Remaining Length field
> -----------------------------------
>
>                 Key: MQTT-400
>                 URL: https://issues.oasis-open.org/browse/MQTT-400
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Bug
>          Components: edits
>    Affects Versions: 5, wd10
>            Reporter: Brian Raymor
>            Assignee: Ken Borgendale
>            Priority: Minor
>             Fix For: 5, wd11
>
>
> Three variations.
> 1. Specified - not specified
> 1938 ... For the PUBACK Packet this has the value 3 if a Return
> 1939 Code is specified and 2 if it a Return Code is not specified.
> 2. Not specified - specified
> 1987 ... For the PUBREC Packet this has the value 2
> 1988 if no Return Code is specified, and 3 if it a Return Code is specified.
> 3. Specified - otherwise
> 2045 ... For the PUBREL Packet this has the value 3 if the variable
> 2046 header contains a PUBREL Return Code, and 2 otherwise.



--
This message was sent by Atlassian JIRA
(v6.2.2#6258)


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