Discussion:
[rabbitmq-users] mqtt plugin keep alive
Ankush Sachdeva
2015-05-06 09:47:01 UTC
Permalink
I am using RabbitMQ MQTT plugin along with Paho Android client. I am trying
to implement a long running service, which tries to maintain a connection
with server at all times.
When I set my keepalive interval 5 minutes, the Paho client sends pings
every 5 mins but never gets a reply (and I receive no TCP packet on server
side). The TCP connection status on both client and server shows
established however.

This problem goes away when I set the keep alive interval less than 60secs.
Could someone please help me on what could be the possible reason for this?
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-05-06 10:17:04 UTC
Permalink
Post by Ankush Sachdeva
When I set my keepalive interval 5 minutes, the Paho client sends
pings every 5 mins but never gets a reply (and I receive no TCP packet
on server side). The TCP connection status on both client and
server shows established however.
This problem goes away when I set the keep alive interval less
than 60secs.
Could someone please help me on what could be the possible reason for this?
What RabbitMQ version do you run? Heartbeats/keep-alive should work as you
expect. 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Michael Klishin
2015-05-06 10:59:08 UTC
Permalink
+rabbitmq-users — please CC the list.
I am using version 3.5.1
Is there any way I can log ping requests to RabbitMQ? Firehose
doesn't seem to log that.
No. Wireshark should be able to help. We're happy to try reproducing things
on our end after we ship 3.5.2 (should be this or early next week). 
--
MK

Staff Software Engineer, Pivotal/RabbitMQ
--
You received this message because you are subscribed to the Google Groups "rabbitmq-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to rabbitmq-users+***@googlegroups.com.
To post to this group, send an email to rabbitmq-***@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
Loading...