• Type: Improvement
    • Resolution: Fixed
    • Priority: Minor
    • 3.1.1
    • Affects Version/s: 3.1.1
    • Component/s: core
    • None
    • Environment:

      N/A

    • Hide

      Non-normative:
      A client implementation may provide a convenience method to generate a random Client Identifier. Use of such a method should be actively discouraged when the Clean Session flag is set to 0.

      Show
      Non-normative: A client implementation may provide a convenience method to generate a random Client Identifier. Use of such a method should be actively discouraged when the Clean Session flag is set to 0.

      Opened on behalf of Roger Light:-

      Hi,

      A lot of MQTT client libraries offer the feature of generating random
      client ids rather than having to supply one. This is good.

      I recently had over 10,000 client connections made to
      test.mosquitto.org using a random client id, but also having set clean
      session to false, which meant that when they disconnected their
      information was stored on the server but there was basically no chance
      they could reconnect.

      It would be nice to have a comment in the spec suggesting that
      implementations may offer to generate random client ids but that they
      must refuse to do so if clean session is set to false.

      Cheers,

      Roger

            Assignee:
            Andrew Banks (Inactive)
            Reporter:
            Raphael Cohen (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: