Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-4200

Allow configuring link-stealing behavior for MQTT

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.29.0
    • None
    • None

    Description

      The MQTT specifications define a behavior often referred to as "link stealing." This means that whenever a new client connects with the same client ID as another existing client then the existing client's session will be closed and its network connection will be terminated.

      In certain use-cases this behavior is not desired so it is configurable. The URL parameter allowLinkStealing can be configured on the MQTT acceptor to modify this behavior. By default allowLinkStealing is true. If it is set to false then whenever a new client connects with the same client ID as another existing client then the new client's session will be closed and its network connection will be terminated. In the case of MQTT 5 clients they will receive a disconnect reason code of 0x80 (i.e. "Unspecified error").

      Attachments

        Activity

          People

            jbertram Justin Bertram
            jbertram Justin Bertram
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: