<!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>
Indeed, upgrading just the client(s) will break things for sure, since
the clients now speak AMQP 0-9-1.<br>
We do recommend upgrading all clients plus the server to version 2.0.0.
There are many new features in it; including persistence to disk.<br>
Note that the latest versions of broker and erlang client on default do
not work together. We are working on fixing it. Use tag rabbitmq_v2_0_0
instead, if you check source out from hg.<br>
<br>
<br>
Rgds,<br>
Vlad.<br>
<br>
<br>
On 09/02/2010 02:03 PM, Guillaume Perrot wrote:
<blockquote
cite="mid:AANLkTi=mxT0MZ+cg-zVqD6Thu-ey=Hyg5qMSyNRdqsZ8@mail.gmail.com"
type="cite">Hi,<br>
I already use #amqp_params, but the record definition is missing the
heartbeat field:<br>
<br>
-record(amqp_params, {username = <<"guest">>,<br>
password = <<"guest">>,<br>
virtual_host = <<"/">>,<br>
host = "localhost",<br>
port = ?PROTOCOL_PORT,<br>
ssl_options = none}).<br>
<br>
Apparently I use an outdated version of the client (hg clone --rev
825eceaca84c <a moz-do-not-send="true"
href="http://hg.rabbitmq.com/rabbitmq-erlang-client/">http://hg.rabbitmq.com/rabbitmq-erlang-client/</a>)
and I am not sure I can upgrade it without upgrading the server and
codegen.<br>
(hg clone --rev b1089fcc31b7 <a moz-do-not-send="true"
href="http://hg.rabbitmq.com/rabbitmq-server/">http://hg.rabbitmq.com/rabbitmq-server/</a>
<br>
hg clone --rev a62e87645861 <a moz-do-not-send="true"
href="http://hg.rabbitmq.com/rabbitmq-codegen/">http://hg.rabbitmq.com/rabbitmq-codegen/</a>)<br>
<br>
I'll try to update the whole, hoping migrating from the time rabbitmq
implemented the 0.8 version of the spec does not break anything (we
also have Java clients to update).<br>
<br>
<div class="gmail_quote">2010/9/2 Vlad Alexandru Ionescu <span
dir="ltr"><<a moz-do-not-send="true" href="mailto:vlad@rabbitmq.com">vlad@rabbitmq.com</a>></span><br>
<blockquote class="gmail_quote"
style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div 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.
<div>
<div class="h5"><br>
<br>
<br>
<br>
On 09/02/2010 01:47 PM, Guillaume Perrot wrote:
</div>
</div>
<blockquote type="cite">
<div>
<div class="h5">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>
</div>
</div>
<pre><fieldset></fieldset>
_______________________________________________
rabbitmq-discuss mailing list
<a moz-do-not-send="true"
href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.rabbitmq.com</a>
<a moz-do-not-send="true"
href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss"
target="_blank">https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss</a>
</pre>
</blockquote>
</div>
</blockquote>
</div>
<br>
</blockquote>
</body>
</html>