[rabbitmq-discuss] rabbitmq-erlang-client: How to configure connection's heartbeat ?

Vlad Alexandru Ionescu vlad at rabbitmq.com
Thu Sep 2 13:55:04 BST 2010


You can use the amqp_connection:start_network/1 function. You pass an 
#amqp_params{heartbeat = TimeoutSec} parameter. For example:

Connection = amqp_connection:start_network(#amqp_params{heartbeat = 5}).

... to start a network connection with 5 seconds heartbeat.

Make sure you include amqp_client.hrl.
There are quite a few things you can tweak through #amqp_params{}.


On 09/02/2010 01:47 PM, Guillaume Perrot wrote:
> Hello,
> I could'nt figure out how to configure the connection's heartbeat 
> using rabbitmq-erlang-client.
> In the Java lib it was easy to do so by calling 
> ConnectionParams.setRequestedHeartbeat(), I did not find an equivalent 
> feature in rabbitmq-erlang-client.
> Thanks in advance.
> _______________________________________________
> 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/20100902/9e583065/attachment.htm>

More information about the rabbitmq-discuss mailing list