activemq-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Timothy Bish <>
Subject Re: [MQTT] Impossible to disable InactivityMonitor !
Date Fri, 19 Oct 2012 21:47:15 GMT
On Fri, 2012-10-19 at 14:21 -0700, Aliquip wrote: 
> Isn't InactivityMonitor there to to throw out completely dead connections,
> thus connections where no ping's are exachanged?
> Reading "If
> normal activemq traffic has not been sent across the connection during that
> period, it expects to receive a KeepAliveInfo message sent by the
> InactivityMonitor on the other end of the connection." Now the mqtt protocol
> doesnt know of KeepAliveInfo, it however does implement ping messages.
> I stumbled on a similar problem, where it seemed that, despite ping's being
> exchanged the connection was closed
> (

I just applied a fix to the MQTT code that fixes the startup of the MQTT
version of the Inactivity Monitor such that it will honor the keep alive
setting sent in the CONNECT frame.  Prior to this it was always started
early with the default 30 second timeout.  If you set the keepAlive to
zero it should now not disconnect your client.  We should probably look
to enhance this in the future such that a client that sets a zero keep
alive interval still has some inactivity tracking done so that we can
close down dead socket connections after some longer read timeout.  


> --
> View this message in context:
> Sent from the ActiveMQ - User mailing list archive at

Tim Bish
Sr Software Engineer | RedHat Inc. | | 
skype: tabish121 | twitter: @tabish121

View raw message