<div dir="ltr">Thanks for the help in understanding the issue better.<div><br><div>I won't be testing again for a few days so I will let you know how the 5 - 10 sec heartbeat works out. </div></div></div><div class="gmail_extra">
<br><br><div class="gmail_quote">On Fri, Jul 25, 2014 at 9:24 PM, Michael Klishin-2 [via RabbitMQ] <span dir="ltr"><<a href="/user/SendEmail.jtp?type=node&node=36897&i=0" target="_top" rel="nofollow" link="external">[hidden email]</a>></span> wrote:<br>
<blockquote style='border-left:2px solid #CCCCCC;padding:0 1em' class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

        +rabbitmq-discuss
<br><div class=""><br>On 26 July 2014 at 00:18:32, Bryan Cliffe (<a href="http://user/SendEmail.jtp?type=node&node=36895&i=0" rel="nofollow" link="external" target="_blank">[hidden email]</a>) wrote:
<br>> > I'm disconnecting from wifi and reconnecting through cellular 
<br>> to test the robustness of the connection when the I.P changes. 
<br>> I wanted to see how the paho java client would handle message delivery 
<br>> on QoS 1 to Android. I'm then filling the queue during the handover 
<br>> phase and I can't consume on reconnect. I'm using two different 
<br>> values for the heartbeat which is 240000ms and 30000ms but I'm 
<br>> having the same problem with both. It would be interesting if 
<br>> it's not detecting the change over from wifi to cellular.
<br><br>I'm not familiar with how exactly switching from WiFi to cellular data affects
<br>TCP connections on Android but in general, this is exactly the kind of issue
<br>heartbeats in MQTT are for.
<br><br>Try using a value of 5-10 seconds. I'm all for improving RabbitMQ MQTT plugin
<br>for this case but if Rabbit doesn't get a notification from the OS that the peer
<br>disconnected, a low heartbeat interval is the only possible solution.
<br></div><div class="">-- 
<br>MK 
<br><br>Staff Software Engineer, Pivotal/RabbitMQ
<br></div><div class="">_______________________________________________
<br>rabbitmq-discuss mailing list has moved to <a href="https://groups.google.com/forum/#!forum/rabbitmq-users" rel="nofollow" link="external" target="_blank">https://groups.google.com/forum/#!forum/rabbitmq-users</a>,
<br>please subscribe to the new list!
<br><br><a href="http://user/SendEmail.jtp?type=node&node=36895&i=1" rel="nofollow" link="external" target="_blank">[hidden email]</a>
<br><a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" rel="nofollow" link="external" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>

        
        
        
        <br>
        <br>
        <hr noshade size="1" color="#cccccc">
        </div><div style="color:#444;font:12px tahoma,geneva,helvetica,arial,sans-serif"><div class="">
                <div style="font-weight:bold">If you reply to this email, your message will be added to the discussion below:</div>
                </div><a href="http://rabbitmq.1065348.n5.nabble.com/MQTT-plugin-QoS-1-Android-not-consuming-on-reconnect-tp36888p36895.html" target="_blank" rel="nofollow" link="external">http://rabbitmq.1065348.n5.nabble.com/MQTT-plugin-QoS-1-Android-not-consuming-on-reconnect-tp36888p36895.html</a>
        </div><div class="HOEnZb"><div class="h5">
        <div style="color:#666;font:11px tahoma,geneva,helvetica,arial,sans-serif;margin-top:.4em;line-height:1.5em">
                
                To unsubscribe from MQTT plugin, QoS 1, Android, not consuming on reconnect, <a href="" target="_blank" rel="nofollow" link="external">click here</a>.<br>

                <a href="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" rel="nofollow" style="font:9px serif" target="_blank" link="external">NAML</a>
        </div></div></div></blockquote></div><br></div>


        
        
        
<br/><hr align="left" width="300" />
View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/MQTT-plugin-QoS-1-Android-not-consuming-on-reconnect-tp36888p36897.html">Re: MQTT plugin, QoS 1, Android, not consuming on reconnect</a><br/>
Sent from the <a href="http://rabbitmq.1065348.n5.nabble.com/">RabbitMQ mailing list archive</a> at Nabble.com.<br/>