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-41) Inconsistency in the definition of the Remaining Length field for the different control packets


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

Rahul Gupta commented on MQTT-41:
---------------------------------

Changes made in WD-06

1) line 516-517 in CONNECT control packet

Remaining Length is the length of the variable header (12 bytes) plus the length of the Payload. This is a multi-byte field, see 2.1.3.

2) Line 809-810 in CONNACK control Packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 

3) Line 906-907 in PUBLISH control packet

Remaining Length field
This is the length of variable header plus the length of the payload. It is a multibyte field.

4)line 1005-1006 in PUBACK control packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 


5) line 1060-1061 in PUBREC control packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 


6)line 1126-1127 in PUBREL control packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 


7)line 1161-1162 in PUBCOMP control packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 


8)line 1224-1225 in SUBSCRIBE control packet

Remaining Length field
This is the length of variable header (2 bytes) plus the length of the payload, It is a multibyte field.

9)line 1317-1318 in SUBACK control packet

Remaining Length field
This is the length of variable header (2 bytes) plus the length of the payload, it is a multibyte field.


10)line 1391-1392 in UNSUBSCRIBE control packet

Remaining Length field
This is the length of variable header (2 bytes) plus the length of the payload, it is a multibyte field.

11) line 1440-1441 in UNSUBACK control packet

Remaining Length field
This is the length of the variable header (2 bytes). It is a multibyte field. 





> Inconsistency in the definition of the Remaining Length field for the different control packets
> -----------------------------------------------------------------------------------------------
>
>                 Key: MQTT-41
>                 URL: http://tools.oasis-open.org/issues/browse/MQTT-41
>             Project: OASIS Message Queuing Telemetry Transport (MQTT) TC
>          Issue Type: Improvement
>          Components: edits
>            Reporter: Julien Niset
>            Assignee: Rahul Gupta
>            Priority: Minor
>
> The Remaining Length field is sometimes defined as a "IS a multibyte field" (see e.g. CONNECT packet line 623 or PUBLISH packet line 988) and sometimes as a "CAN BE a multibyte field (see e.g. PUBACK packet line 1171 or SUBSCRIBE packet line 1381). 
> I believe the wording should be more consistent and always define this field as a "Is a multibyte field".
> I also noted that the Remaining Length field is not defined for the CONNACK packet, and incorrectly defined for the SUBSCRIBE packet (it should be "The length of the payload and the variable header.").

-- 
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]