activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Christian Posta <christian.po...@gmail.com>
Subject Re: [MQTT] Impossible to disable InactivityMonitor !
Date Thu, 25 Oct 2012 20:11:32 GMT
Charles,
wireFormat.maxInactivityDuration won't work for MQTT
Can you try on the latest snapshots using the KeepAlive setting in the
client?

On Mon, Oct 22, 2012 at 1:20 AM, Charles Wang <kitta4587@gmail.com> wrote:

> i'm using the 5.8.0-snapshot, my setting:
>
> <transportConnector name="mqtt"
> uri="mqtt://113.31.65.60:1883?wireFormat.maxInactivityDuration=0"/>
>
> And i got:
>
> 2012-10-22 16:10:45,674 | DEBUG | SampleJavaV3_subscribe MQTT Connection
> using heart beat of  60 secs |
> org.apache.activemq.transport.mqtt.MQTTProtocolConverter | ActiveMQ
> Transport: tcp:///124.127.108.134:7442@1883
> 2012-10-22 16:10:45,699 | DEBUG | MQTT Client  connected. |
> org.apache.activemq.transport.mqtt.MQTTProtocolConverter | ActiveMQ
> Transport: tcp:///124.127.108.134:7442@1883
> 2012-10-22 16:12:45,674 | DEBUG | 60000 ms elapsed since last read check. |
> org.apache.activemq.transport.mqtt.MQTTInactivityMonitor |
> InactivityMonitor
> ReadCheck
> 2012-10-22 16:12:45,709 | DEBUG | Sent Ping Response to  |
> org.apache.activemq.transport.mqtt.MQTTProtocolConverter | ActiveMQ
> Transport: tcp:///124.127.108.134:7442@1883
> 2012-10-22 16:13:45,675 | DEBUG | 60001 ms elapsed since last read check. |
> org.apache.activemq.transport.mqtt.MQTTInactivityMonitor |
> InactivityMonitor
> ReadCheck
> 2012-10-22 16:14:45,675 | DEBUG | 60000 ms elapsed since last read check. |
> org.apache.activemq.transport.mqtt.MQTTInactivityMonitor |
> InactivityMonitor
> ReadCheck
> 2012-10-22 16:14:45,675 | DEBUG | No message received since last read check
> for tcp:///124.127.108.134:7442@1883! Throwing InactivityIOException. |
> org.apache.activemq.transport.mqtt.MQTTInactivityMonitor |
> InactivityMonitor
> ReadCheck
> 2012-10-22 16:14:45,677 | WARN  | Transport Connection to:
> tcp://124.127.108.134:7442 failed:
> org.apache.activemq.transport.InactivityIOException: Channel was inactive
> for too (>60000) long: tcp://124.127.108.134:7442 |
> org.apache.activemq.broker.TransportConnection.Transport |
> MQTTInactivityMonitor Async Task:
> java.util.concurrent.ThreadPoolExecutor$Worker@6e659812[State = 0, empty
> queue]
>
>
>
> --
> View this message in context:
> http://activemq.2283324.n4.nabble.com/MQTT-Impossible-to-disable-InactivityMonitor-tp4657945p4658032.html
> Sent from the ActiveMQ - User mailing list archive at Nabble.com.
>



-- 
*Christian Posta*
http://www.christianposta.com/blog
twitter: @christianposta

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message