<p>I am using the spring amqp lib and it is doing the connection closing when the spring context is closed. I do not think it has a property to inject the hack. Also if you know any of the spring amqp devs. Having you telling them to check to make sure it is doing the way you have described will have much more authority than me. </p>

<p>I will probably hack the spring amqp lib for now</p>
<div class="gmail_quote">On Nov 14, 2011 12:32 PM, &quot;Simon MacMullen&quot; &lt;<a href="mailto:simon@rabbitmq.com">simon@rabbitmq.com</a>&gt; wrote:<br type="attribution"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
On 14/11/11 16:15, Benjamin Bennett wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Here is report from �rabbitmqctrl report<br>
<a href="http://pastebin.com/MSwv82C3" target="_blank">http://pastebin.com/MSwv82C3</a><br>
</blockquote>
<br>
Ah, thank you. After some poking, that genuinely looks like a server bug. Damn.<br>
<br>
In order for it to happen you need the last channel close / close_ok to overlap with the connection close / close_ok. With the Java client you have to invoke Channel.close() and Connection.close() from different threads to get this to happen, and still be unlucky.<br>

<br>
You should be allowed to do this, but right now it&#39;s racy.<br>
<br>
&gt; I was going to attempt to put a timeout on the connection close method<br>
&gt; but that really would be a hack.<br>
<br>
Indeed! Other slightly less hacky workarounds until we get this fixed:<br>
<br>
* Invoke Channel.close() and Connection.close() from the same thread, or otherwise ensure they don&#39;t overlap.<br>
<br>
* Don&#39;t invoke Channel.close() if you know you&#39;re going to invoke Connection.close() anyway.<br>
<br>
Cheers, Simon<br>
<br>
-- <br>
Simon MacMullen<br>
RabbitMQ, VMware<br>
______________________________<u></u>_________________<br>
rabbitmq-discuss mailing list<br>
<a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">rabbitmq-discuss@lists.<u></u>rabbitmq.com</a><br>
<a href="https://lists.rabbitmq.com/cgi-bin/mailman/listinfo/rabbitmq-discuss" target="_blank">https://lists.rabbitmq.com/<u></u>cgi-bin/mailman/listinfo/<u></u>rabbitmq-discuss</a><br>
</blockquote></div>