Uploaded image for project: 'OASIS Message Queuing Telemetry Transport (MQTT) TC'
  1. OASIS Message Queuing Telemetry Transport (MQTT) TC
  2. MQTT-594

Keep Alive and Session Expiry Interval controls - (session leak)

    XMLWordPrintable

    Details

    • Type: Improvement
    • Status: Applied
    • Priority: Major
    • Resolution: Applied
    • Affects Version/s: None
    • Fix Version/s: None
    • Component/s: MQTT-SN
    • Labels:
      None
    • Proposal:
      Hide

      We could look to bind the session expiry close to the last seen time of the client instead of the "Network Connection" thus the gateway has a reasonable place to start the close counting.

      We must mandate that the session expiry interval is > keep alive else you could have a situation where sessions are cleared up whilst the device still APPEARS to be ACTIVE.

      The KeepAlive 0 rule AND the session expiry interval 0xFFFFFFFFF meaning keep forever seems like an unwise choice for gateway devices.

      Show
      We could look to bind the session expiry close to the last seen time of the client instead of the "Network Connection" thus the gateway has a reasonable place to start the close counting. We must mandate that the session expiry interval is > keep alive else you could have a situation where sessions are cleared up whilst the device still APPEARS to be ACTIVE. The KeepAlive 0 rule AND the session expiry interval 0xFFFFFFFFF meaning keep forever seems like an unwise choice for gateway devices.

      Description

      The "Keep Alive" and "Session Expiry Interval" behaviour defined in MQTT 5 applied "as-is" in MQTT-SN would be dangerous. Since the "Network Connection" cannot be used as a control vector to start session expiry clocks, this is a session memory leak.

        Attachments

          Activity

            People

            • Assignee:
              thesii Simon Johnson [X] (Inactive)
              Reporter:
              simon.johnson1 Simon Johnson [X] (Inactive)
            • Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: