<div dir="ltr">rabbitmq-c doesn't have an equivalent API that invokes a callback when a channel is throttled.<div><br></div><div>That said, rabbitmq-c does support the connection.blocked extension (<a href="http://www.rabbitmq.com/connection-blocked.html">http://www.rabbitmq.com/connection-blocked.html</a>), you do have to do a bit of work to get it to work:</div>
<div><br></div><div>1. You'd need to send the 'connection.blocked'=true value as a part of the capabilities table when calling amqp_login()</div><div>2. As you're publishing you'd need to periodically watch for a AMQP_CONNECTION_BLOCKED_METHOD (using amqp_simple_wait_frame_noblock(), and stop publishing when you receive this messages, only resuming when you receive a AMQP_CONNECTION_UNBLOCKED_METHOD from the broker.</div>
<div><br></div><div>Unfortunately I don't have any example code that demonstrates this at the moment, but I'll try and put something together in the next few days. You can track the issue here:�<a href="https://github.com/alanxz/rabbitmq-c/issues/161">https://github.com/alanxz/rabbitmq-c/issues/161</a></div>
<div><br></div><div>-Alan</div><div><br></div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Tue, Jan 7, 2014 at 6:37 AM, Rohit Patle <span dir="ltr"><<a href="mailto:Rohit.Patel2@techmahindra.com" target="_blank">Rohit.Patel2@techmahindra.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">




<div>
<div style="direction:ltr;font-size:10pt;font-family:Tahoma">Hi,<br>
<br>
Due to vm_memory_high_watermark reached to 0.4%, My publisher gone blocked. Is there any mechanism to identify this in application in rabbitmq-c library just like java and .NET client libraries are having?<br>
<br>
Thanks & Regards,<br>
Rohit<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>