<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
  <meta content="text/html; charset=ISO-8859-1"
 http-equiv="Content-Type">
</head>
<body bgcolor="#ffffff" text="#000000">
<br>
Hi,<br>
<br>
<br>
You can use the amqp_connection:start_network/1 function. You pass an
#amqp_params{heartbeat = TimeoutSec} parameter. For example:<br>
<br>
Connection = amqp_connection:start_network(#amqp_params{heartbeat = 5}).<br>
<br>
... to start a network connection with 5 seconds heartbeat.<br>
<br>
Make sure you include amqp_client.hrl.<br>
There are quite a few things you can tweak through #amqp_params{}.<br>
<br>
<br>
Rgds,<br>
Vlad.<br>
<br>
<br>
<br>
On 09/02/2010 01:47 PM, Guillaume Perrot wrote:
<blockquote
 cite="mid:AANLkTim3zgpoKVRUT=0Z7Vo4n08ouguYN8dW5NqSSnRA@mail.gmail.com"
 type="cite">Hello,<br>
I could'nt figure out how to configure the connection's heartbeat using
rabbitmq-erlang-client.<br>
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.<br>
Thanks in advance.<br>
  <pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rabbitmq-discuss mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a>
<a class="moz-txt-link-freetext" href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
  </pre>
</blockquote>
</body>
</html>