<font face="arial" size="2"><p style="margin:0;padding:0;">Hi All,</p>
<p style="margin:0;padding:0;">&nbsp;</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. &nbsp;We have implemented heartbeats but I am struggling to understand the flow to monitor and re-establish connections. &nbsp;If I understand correctly:</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">Enabling heartbeats WITHOUT handling&nbsp;ShutdownSignalException would actually be counter productive as a number of missed heartbeats would close the connection.</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">Is the "right way to do it" :</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">Enable heartbeats on the server</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">Setting (in Java)&nbsp;factory.setRequestedHeartbeat(HEARTBEAT_TIMEOUT); &nbsp;will "auto-magically" enable &nbsp; &nbsp; &nbsp;heartbeats on the client and no other call is neccessary to send heartbeats &lt;- (big doubt here)</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">Handle&nbsp;<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;">&nbsp;</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;">&nbsp;</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;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p>
<p style="margin:0;padding:0;">&nbsp;</p></font>