activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hiawui (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (ARTEMIS-397) MQTT protocol - connection TTL = keepAliveTimeSeconds * 750
Date Mon, 15 Feb 2016 06:36:18 GMT

     [ https://issues.apache.org/jira/browse/ARTEMIS-397?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

hiawui updated ARTEMIS-397:
---------------------------
    Description: 
For MQTT protocol, the connection TTL is equal to keepAliveTimeSeconds * 750, causes connections
always disconnected by timeout. Is it a bug? or why?

====== Codes in MQTTProtocolHandler.java:159 ======

   /**
    * Called during connection.
    *
    * @param connect
    */
   void handleConnect(MqttConnectMessage connect, ChannelHandlerContext ctx) throws Exception
{
      this.ctx = ctx;
      connectionEntry.ttl = connect.variableHeader().keepAliveTimeSeconds() * 750;

      String clientId = connect.payload().clientIdentifier();
      session.getConnectionManager().connect(clientId, connect.payload().userName(), connect.payload().password(),
connect.variableHeader().isWillFlag(), connect.payload().willMessage(), connect.payload().willTopic(),
connect.variableHeader().isWillRetain(), connect.variableHeader().willQos(), connect.variableHeader().isCleanSession());
   }

===============================================

  was:
For MQTT protocol, the connection TTL is equal to keepAliveTimeSeconds * 750, causes connections
always disconnected by timeout. Is it a bug? or why?

====== Codes in MQTTProtocolHandler.java:159 ======

   /**
    * Called during connection.
    *
    * @param connect
    */
   void handleConnect(MqttConnectMessage connect, ChannelHandlerContext ctx) throws Exception
{
      this.ctx = ctx;
      connectionEntry.ttl = connect.variableHeader().keepAliveTimeSeconds() * 750;

      String clientId = connect.payload().clientIdentifier();
      session.getConnectionManager().connect(clientId, connect.payload().userName(), connect.payload().password(),
connect.variableHeader().isWillFlag(), connect.payload().willMessage(), connect.payload().willTopic(),
connect.variableHeader().isWillRetain(), connect.variableHeader().willQos(), connect.variableHeader().isCleanSession());
   }
===============================================


> MQTT protocol - connection TTL = keepAliveTimeSeconds * 750
> -----------------------------------------------------------
>
>                 Key: ARTEMIS-397
>                 URL: https://issues.apache.org/jira/browse/ARTEMIS-397
>             Project: ActiveMQ Artemis
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 1.0.0, 1.1.0, 1.2.0
>            Reporter: hiawui
>
> For MQTT protocol, the connection TTL is equal to keepAliveTimeSeconds * 750, causes
connections always disconnected by timeout. Is it a bug? or why?
> ====== Codes in MQTTProtocolHandler.java:159 ======
>    /**
>     * Called during connection.
>     *
>     * @param connect
>     */
>    void handleConnect(MqttConnectMessage connect, ChannelHandlerContext ctx) throws Exception
{
>       this.ctx = ctx;
>       connectionEntry.ttl = connect.variableHeader().keepAliveTimeSeconds() * 750;
>       String clientId = connect.payload().clientIdentifier();
>       session.getConnectionManager().connect(clientId, connect.payload().userName(),
connect.payload().password(), connect.variableHeader().isWillFlag(), connect.payload().willMessage(),
connect.payload().willTopic(), connect.variableHeader().isWillRetain(), connect.variableHeader().willQos(),
connect.variableHeader().isCleanSession());
>    }
> ===============================================



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message