<div dir="ltr"><div>Rohit;</div><div><br></div><div><br></div><div><br></div>Rohit;<div><br></div><div>You do not need to address your emails to rabbitmq-discuss-owner@ or rabbitmq-discuss-request@ when posting to the discussion list. rabbitmq-discuss@ is sufficient. <div class="gmail_extra">
<br><br><div class="gmail_quote">On Mon, Feb 10, 2014 at 9:01 PM, Rohit Patle <span dir="ltr"><<a href="mailto:Rohit.Patle@techmahindra.com" target="_blank">Rohit.Patle@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>
I am using rabbitmq-c client library v0.4.1.<br>
<br>
Here is the condition that, I need to pole for the connection re-establishment in the interval of every 30 sec, if there is a network failure or my RMQ is down. While performing this I am observing that there is some memory leak with my rabbitmq client library,
which is gradually increases and the library is not returns back the amount of memory acquired by it to the system. Due to the reason after certain period of time the system is unable to allocate memory for amqp_new_connection().<br>
<br>
To over come the issue I tried with amqp_connection_close() if in case I got "opening SSL/TLS connection", but it is of no use as it is not helping me to release back the acquired memory by rabitmq library to system. Also I am not able to do amqp_destroy_connection()
because the connection is not establish yet successfully.<br></div></div></blockquote><div><br></div><div>I'm confused as to what you're doing.</div><div><br></div><div>amqp_destroy_connection() should be called for every amqp_connection_state_t you create with amqp_new_connection(). It doesn't matter if you're able to successfully connect to the broker or not, you will need to destroy the amqp_connection_state_t object.</div>
<div><br></div><div>-Alan</div></div></div></div></div>