XMLWordPrintable

    Details

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

      N/A

    • Proposal:
      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.

      Description

      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

        Attachments

          Activity

            People

            • Assignee:
              andrew_banks Andrew Banks (Inactive)
              Reporter:
              raphcohn Raphael Cohen (Inactive)
            • Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: