<pre style="margin-top:0px;margin-bottom:0px;padding:0px;border:0px;line-height:16px"><div class="" id="LC28" style="color:rgb(51,51,51);margin:0px;padding:0px 0px 0px 10px;border:0px"><font face="arial, helvetica, sans-serif">For ruby-amqp, I believe the following will pass it through correctly:</font></div>
<div class="" id="LC28" style="font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px;color:rgb(51,51,51);margin:0px;padding:0px 0px 0px 10px;border:0px"><br></div><div class="" id="LC28" style="margin:0px;padding:0px 0px 0px 10px;border:0px">
<font face="courier new, monospace" color="#000000">opts <span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">=</span> <span class="" style="margin:0px;padding:0px;border:0px">AMQP</span><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">::</span><span class="" style="margin:0px;padding:0px;border:0px">Client</span><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">.</span><span class="" style="margin:0px;padding:0px;border:0px">parse_connection_uri</span><span class="" style="margin:0px;padding:0px;border:0px">(</span><span class="" style="margin:0px;padding:0px;border:0px">uri</span><span class="" style="margin:0px;padding:0px;border:0px">)</span><br>
</font></div><div class="" id="LC29" style="margin:0px;padding:0px 0px 0px 10px;border:0px"><font face="courier new, monospace" color="#000000"><span class="" style="margin:0px;padding:0px;border:0px">opts</span><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">.</span><span class="" style="margin:0px;padding:0px;border:0px">merge!</span><span class="" style="margin:0px;padding:0px;border:0px">(</span><span class="" style="margin:0px;padding:0px;border:0px">:heartbeat</span> <span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">=></span> 5<span class="" style="margin:0px;padding:0px;border:0px">)</span></font></div>
<div class="" id="LC30" style="margin:0px;padding:0px 0px 0px 10px;border:0px"><span class="" style="margin:0px;padding:0px;border:0px"><font face="courier new, monospace" color="#000000"><br></font></span></div><div class="" id="LC30" style="margin:0px;padding:0px 0px 0px 10px;border:0px">
<font color="#000000"><font face="courier new, monospace"><span class="" style="margin:0px;padding:0px;border:0px">conn = </span><span class="" style="margin:0px;padding:0px;border:0px">AMQP</span><span class="" style="margin:0px;padding:0px;border:0px;font-weight:bold">.</span><span class="" style="margin:0px;padding:0px;border:0px">connect</span><span class="" style="margin:0px;padding:0px;border:0px">(</span><span class="" style="margin:0px;padding:0px;border:0px">opts</span><span class="" style="margin:0px;padding:0px;border:0px">)</span></font><font face="courier new, monospace"> </font></font><span style="color:rgb(51,51,51);font-family:Consolas,'Liberation Mono',Courier,monospace;font-size:12px"><br>
</span></div></pre><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Nov 21, 2012 at 12:54 PM, Robert Goliasz <span dir="ltr"><<a href="mailto:r.goliasz@digital-science.com" target="_blank">r.goliasz@digital-science.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi,<br>
<br>
What's the best way to use Heartbeats in the ruby AMQP library? I guess it's<br>
done via connection tuning, but having hard time finding any docs on it.<br>
<br>
I want to ensure that the connection is up even on flaky firewalls, and<br>
using set_sock_opt on the AMQP::Session seems quite unportable.<br>
<br>
Thanks<br>
<span class="HOEnZb"><font color="#888888">--<br>
Robert Goliasz<br>
</font></span><br>_______________________________________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a><br>
<br></blockquote></div><br></div>