<div dir="ltr"><br><div class="gmail_extra"><br><br><div class="gmail_quote">On Mon, Mar 17, 2014 at 3:45 AM, Lothe Shashank <span dir="ltr"><<a href="mailto:Shashank.Lothe@techmahindra.com" target="_blank">Shashank.Lothe@techmahindra.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi Alan,<br>
<br>
Thanks for your reply. As expected by you these kind of APIs must be hanging in other amqp clients as well. I have tested php APIs using php-amqp library and noticed the same hanging behaviour.
<br></div></div></blockquote><div><br></div><div>php-amqp is a wrapper around the rabbitmq-c library, and thus not really a good comparison. You should try it with the Java or .NET clients.�</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<br>
What could be the possible way out for these situations? Issue is raised in github for tracking.<br></div></div></blockquote><div><br></div><div>Enable heartbeats on the client. You can do this by passing a value greater than 0 to amqp_login(). A default used by the Java client is 600 second, or 10 minutes. It can be set lower than this if necessary. Note that rabbitmq-c only has partial support for heartbeats: it has nothing in the background servicing heartbeat events, so it is necessary to have your code call into the library (or be blocked on a call into the library) more frequently than the heartbeat interval specified.</div>
<div><br></div><div>More information about heartbeats can be found:�<a href="https://www.rabbitmq.com/reliability.html#connection-failures">https://www.rabbitmq.com/reliability.html#connection-failures</a></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
<div><div style="direction:ltr;font-size:10pt;font-family:Tahoma">
<br>
regards,<br>
Shashank<br>
</div>
<br>
<hr>
<font face="Arial" color="Navy"><br>
DISCLAIMER:<br>
This email (including any attachments) is intended for the sole use of the intended recipient/s and may contain material that is CONFIDENTIAL AND PRIVATE COMPANY INFORMATION. Any review or reliance by others or copying or distribution or forwarding of any or
 all of the contents in this message is STRICTLY PROHIBITED. If you are not the intended recipient, please contact the sender by email and delete all copies; your cooperation in this regard is appreciated.<br>
</font>
</div>

<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>
<br></blockquote></div><br></div></div>