<font face="arial" size="2"><p style="margin:0;padding:0;">Hi All,</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">We are running rabbitmq on Android and continue to have serious problems with maintaining a 3G tcp consumer connection. We have implemented heartbeats but I am struggling to understand the flow to monitor and re-establish connections. If I understand correctly:</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Enabling heartbeats WITHOUT handling ShutdownSignalException would actually be counter productive as a number of missed heartbeats would close the connection.</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Is the "right way to do it" :</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Enable heartbeats on the server</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Setting (in Java) factory.setRequestedHeartbeat(HEARTBEAT_TIMEOUT); will "auto-magically" enable heartbeats on the client and no other call is neccessary to send heartbeats <- (big doubt here)</p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;">Handle <span style="font-size: 10pt;">ShutdownSignalException</span><span style="font-size: 10pt;"> cause and reconnect if it was a hard close..</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;">Does that sound about right?</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;">thanks all,</span></p>
<p style="margin:0;padding:0;"><span style="font-size: 10pt;">Matthew</span></p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p>
<p style="margin:0;padding:0;"> </p></font>