[rabbitmq-discuss] Heartbeats in Ruby

Brendan Hay brendan at soundcloud.com
Wed Nov 21 12:57:08 GMT 2012


For ruby-amqp, I believe the following will pass it through correctly:

opts = AMQP::Client.parse_connection_uri(uri)
opts.merge!(:heartbeat => 5)

conn = AMQP.connect(opts)



On Wed, Nov 21, 2012 at 12:54 PM, Robert Goliasz <
r.goliasz at digital-science.com> wrote:

> Hi,
>
> What's the best way to use Heartbeats in the ruby AMQP library? I guess
> it's
> done via connection tuning, but having hard time finding any docs on it.
>
> I want to ensure that the connection is up even on flaky firewalls, and
> using set_sock_opt on the AMQP::Session seems quite unportable.
>
> Thanks
> --
> Robert Goliasz
>
> _______________________________________________
> rabbitmq-discuss mailing list
> rabbitmq-discuss at lists.rabbitmq.com
> https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20121121/f4a61201/attachment.htm>


More information about the rabbitmq-discuss mailing list