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

connectionTtl not work in MQTT Protocol

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 2.6.3
    • Fix Version/s: None
    • Component/s: MQTT
    • Labels:
      None
    • Environment:

      OS: windows 6.1.7601 64bit

      artemis version: 2.6.3

      java version: 1.8.0_25 hotspot 64bit

      client version: paho 

      Description

      1. use mqtt acceptor and config in broker.xml like below

      <acceptor name="mqtt">tcp://0.0.0.0:1883?protocols=MQTT</acceptor>

      2. start artemis

      3. use org.eclipse.paho.client client to connect and connection option like below

      MqttConnectOptions connOpts = new MqttConnectOptions();
      connOpts.setCleanSession(false);
      connOpts.setConnectionTimeout(30);
      connOpts.setKeepAliveInterval(0);

      4. if set connOpts.setKeepAliveInterval(0); the client connection will close immediately

       

      5. if set connOpts.setKeepAliveInterval(30); the client connection will close normally

       

      expect:

      mqtt acceptor should close connection depend on connectionTtl , the default value is 30 seconds.

       

       

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              huang.p alin.p
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: