[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]
Subject: Setting of Session Expiry Interval and Clean Start that equivalent of v3.1.1
Hi, I have a comment about the following part of MQTT Version 5.0 document: https://docs.oasis-open.org/mqtt/mqtt/v5.0/os/mqtt-v5.0-os.html#_Toc3901048 > 3.1.2.11.2 Session Expiry Interval > > ...snip... > > Non-normative comment > > Setting Clean Start to 1 and a Session Expiry Interval of 0, is equivalent to setting CleanSession to 1 in the MQTT Specification Version 3.1.1. Setting Clean Start to 0 and no Session Expiry Interval, is equivalent to setting CleanSession to 0 in the MQTT Specification Version 3.1.1. I thin that "Setting Clean Start to 0 and no Session Expiry Interval, is equivalent to setting CleanSession to 0 in the MQTT Specification Version 3.1.1." is not correct. Because "no Session Expiry Interval" is equivalent to set to 0. The spec said that as follows: > If the Session Expiry Interval is absent the value 0 is used. If it is set to 0, or is absent, the Session ends when the Network Connection is closed. > > If the Session Expiry Interval is 0xFFFFFFFF (UINT_MAX), the Session does not expire. So I think that the sentence "Setting Clean Start to 0 and no Session Expiry Interval, is equivalent to setting CleanSession to 0 in the MQTT Specification Version 3.1.1." should be something like as follows: "Setting Clean Start to 0 and a Session Expiry Interval of 0xFFFFFFFF(UINT_MAX), is equivalent to setting CleanSession to 0 in the MQTT Specification Version 3.1.1." Am I missing something? Thanks, Takatoshi
[Date Prev] | [Thread Prev] | [Thread Next] | [Date Next] -- [Date Index] | [Thread Index] | [List Home]