Hi Tim,<div><br></div><div>Here is another a little bit optimized example of RabbitMQ connection monitoring: <a href="https://gist.github.com/4287139">https://gist.github.com/4287139</a></div><div><br></div><div>Line 69: add erlang:monitor</div>

<div><br></div><div>Lines 43, 47: Here you get 'DOWN' from failed link</div><div><br></div><div>Line 118: Here I restart the link. (of course it could be erlang:send_after/3, but since link is already down timer:sleep/1 also works.)</div>

<div><br></div><div>I hope it will help somehow to the great team of RabbitMQ</div><div><br clear="all"><div><div>Best regards,</div><div>Max</div><br></div><br>
<br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 9:15 PM, Tim Watson <span dir="ltr"><<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<div bgcolor="#FFFFFF"><div>Rabbit connections can be set to use AMQP heartbeats, which provide something similar to keep-alive but also let's the broker deal explicitly with disappearing clients efficiently.</div><div>

<br></div><div>There is the issue of automatically reconnecting, which the native (erlang) client doesn't do. There are several libraries that add similar support, one of which is written by Max from the sounds of things. This can be quite involved if you're using exclusive/auto-delete objects so I'd suggest looking at some of the tools out there before rollin your own, even if it's just instructional to do so.</div>

<div><br></div><div>Do you have code shared anywhere Max? If so we could add it to the tools page on <a href="http://rabbitmq.com" target="_blank">rabbitmq.com</a>, unless it's there already? let me know.</div><div><br>

</div><div>Cheers</div><div><br></div><div>Tim</div><div>Staff Engineer</div><div>RabbitMQ/VMWare</div><div><div class="h5"><div><br>On 14 Dec 2012, at 17:00, Max Bourinov <<a href="mailto:bourinov@gmail.com" target="_blank">bourinov@gmail.com</a>> wrote:<br>

<br></div><div></div><blockquote type="cite"><div>Hi Den,<div><br></div><div>RabbitMQ works very well. My code also included auto-recovery functionality and some other useful stuff. Please describe your problem and I will try to provide you with detailed solution.</div>

<div>

<br></div><div><div><div>Best regards,</div><div>Max</div><br></div><br>
<br><br><div class="gmail_quote">On Fri, Dec 14, 2012 at 8:17 PM, Денис None <span dir="ltr"><<a href="mailto:jobforme17@tut.by" target="_blank">jobforme17@tut.by</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



Hi Max,<br><br>Have you overcome the "[erlang-questions] Ho to keep-alive inactive RabbitMQ connections?" issue. If so, kindly advise me on this problem.<br><br>Thank you in advance.<br><br>Best Regards,<br>Denis<br>




</blockquote></div><br></div>
</div></blockquote></div></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>erlang-questions mailing list</span><br><span><a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a></span><br>

<span><a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a></span><br></div></blockquote></div></blockquote></div><br></div>