[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: [OASIS Issue Tracker] (MQTT-501) Change type of Maximum Packet Size to Variable Byte Integer
[ https://issues.oasis-open.org/browse/MQTT-501?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=67128#comment-67128 ] Ken Borgendale commented on MQTT-501: ------------------------------------- The actual maximum size of a packet is 2**28+4 as the variable byte integer remaining length does not include the size of the fixed header. Therefore strictly a variable byte integer does not encode enough bits to represent this value. One solution is to simply specify Maximum Packet Size as a Four Byte Integer and allow any value up to 2**32-1. All values > 268,435,460 would give the same result as that value as no packet larger than this could be encoded. Someone wishing to explicitly code unlimited could then jsut use UINT_MAX (0xFFFFFFFF). > Change type of Maximum Packet Size to Variable Byte Integer > ----------------------------------------------------------- > > Key: MQTT-501 > URL: https://issues.oasis-open.org/browse/MQTT-501 > Project: OASIS Message Queuing Telemetry Transport (MQTT) TC > Issue Type: Bug > Components: core > Affects Versions: 5, CSD01 > Reporter: Ken Borgendale > Fix For: 5 > > > Please revise the type of Maximum Packet Size from Four Byte Integer > to Variable Integer in 2.2.2.2, 3.1.2.11.5, and 3.2.2.3.5. > Regards, > Tatsuzo -- 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]