[rabbitmq-discuss] MQTT plugin, QoS 1, Android, not consuming on reconnect
brydev
bcliffe at gmail.com
Fri Jul 25 21:54:37 BST 2014
Thanks for the help in understanding the issue better.
I won't be testing again for a few days so I will let you know how the 5 -
10 sec heartbeat works out.
On Fri, Jul 25, 2014 at 9:24 PM, Michael Klishin-2 [via RabbitMQ] <
ml-node+s1065348n36895h8 at n5.nabble.com> wrote:
> +rabbitmq-discuss
>
> On 26 July 2014 at 00:18:32, Bryan Cliffe ([hidden email]
> <http://user/SendEmail.jtp?type=node&node=36895&i=0>) wrote:
> > > I'm disconnecting from wifi and reconnecting through cellular
> > to test the robustness of the connection when the I.P changes.
> > I wanted to see how the paho java client would handle message delivery
> > on QoS 1 to Android. I'm then filling the queue during the handover
> > phase and I can't consume on reconnect. I'm using two different
> > values for the heartbeat which is 240000ms and 30000ms but I'm
> > having the same problem with both. It would be interesting if
> > it's not detecting the change over from wifi to cellular.
>
> I'm not familiar with how exactly switching from WiFi to cellular data
> affects
> TCP connections on Android but in general, this is exactly the kind of
> issue
> heartbeats in MQTT are for.
>
> Try using a value of 5-10 seconds. I'm all for improving RabbitMQ MQTT
> plugin
> for this case but if Rabbit doesn't get a notification from the OS that
> the peer
> disconnected, a low heartbeat interval is the only possible solution.
> --
> MK
>
> Staff Software Engineer, Pivotal/RabbitMQ
> _______________________________________________
> rabbitmq-discuss mailing list has moved to
> https://groups.google.com/forum/#!forum/rabbitmq-users,
> please subscribe to the new list!
>
> [hidden email] <http://user/SendEmail.jtp?type=node&node=36895&i=1>
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
> ------------------------------
> If you reply to this email, your message will be added to the discussion
> below:
>
> http://rabbitmq.1065348.n5.nabble.com/MQTT-plugin-QoS-1-Android-not-consuming-on-reconnect-tp36888p36895.html
> To unsubscribe from MQTT plugin, QoS 1, Android, not consuming on
> reconnect, click here
> <http://rabbitmq.1065348.n5.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=36888&code=YmNsaWZmZUBnbWFpbC5jb218MzY4ODh8MTQ1NzU4Njg1Mg==>
> .
> NAML
> <http://rabbitmq.1065348.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>
>
--
View this message in context: http://rabbitmq.1065348.n5.nabble.com/MQTT-plugin-QoS-1-Android-not-consuming-on-reconnect-tp36888p36897.html
Sent from the RabbitMQ mailing list archive at Nabble.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140725/eb404283/attachment.html>
More information about the rabbitmq-discuss
mailing list