<div dir="ltr"><div>The library will return a library error of AMQP_STATUS_CONNECTION_CLOSED if the underling connection to the broker has been severed.</div><div><br></div>As of rabbitmq-c v0.4.0 the library will send and receive heartbeats when doing long-running calls into the library (e.g., calling amqp_consume_message()) after they&#39;ve been enabled by specifying a non-zero heartbeat parameter in amqp_login(). Note that if a heartbeat timeout occurs a library error of AMQP_STATUS_HEARTBEAT_TIMEOUT will be returned.<div>
<br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Aug 19, 2013 at 2:23 AM, Tim Watson <span dir="ltr">&lt;<a href="mailto:watson.timothy@gmail.com" target="_blank">watson.timothy@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">What you want to do is turn on AMQP heartbeats. IIRC the c client requires that you manage the send/recv of these by hand though.<br>

<div class="HOEnZb"><div class="h5"><br>
On 19 Aug 2013, at 09:32, Haster &lt;<a href="mailto:haster2004@yandex.ru">haster2004@yandex.ru</a>&gt; wrote:<br>
<br>
&gt; Hi there!<br>
&gt; Does rabbitmq-c library have any method to check correctness of connection?<br>
&gt;<br>
&gt; For example I call basic.consume and start reading loop from Server... And<br>
&gt; server fall down, or network cord was cut by something... As I understand I<br>
&gt; won&#39;t be �give noticed about this situations... (my loop is constructed on<br>
&gt; waiting socket in select function)?<br>
&gt;<br>
&gt; So is it any way to know about such problems?<br>
&gt;<br>
&gt;<br>
&gt;<br>
&gt; --<br>
&gt; View this message in context: <a href="http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-and-network-problems-tp28910.html" target="_blank">http://rabbitmq.1065348.n5.nabble.com/rabbitmq-c-and-network-problems-tp28910.html</a><br>

&gt; Sent from the RabbitMQ mailing list archive at Nabble.com.<br>
&gt; _______________________________________________<br>
&gt; rabbitmq-discuss mailing list<br>
&gt; <a href="mailto:rabbitmq-discuss@lists.rabbitmq.com">rabbitmq-discuss@lists.rabbitmq.com</a><br>
&gt; <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>
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>
</div></div></blockquote></div><br></div>