<div dir="ltr">Look closer and the inconsistency is clear. �In both cases the only problem is that the client wants to consume from a queue, but the queue&#39;s nonexistence makes that impossible. �Yet in one case the channel gets closed; in the other, it doesn&#39;t. �Why should nonexistent queue at start be a channel exception, but nonexistent queue later not be one? �Makes no sense to me. �IMO neither case should be a channel exception. �Too late to change it of course.<div>

<br></div><div style>BTW the client code isn&#39;t general-purpose, so you need not worry that any (other) users will be inconvenienced by my idiosyncrasy.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">

On Wed, May 1, 2013 at 10:16 PM, Michael Klishin <span dir="ltr">&lt;<a href="mailto:michael.s.klishin@gmail.com" target="_blank">michael.s.klishin@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">

<div dir="ltr"><div class="gmail_extra"><div class="im">2013/5/2 Chip Salzenberg <span dir="ltr">&lt;<a href="mailto:rev.chip@gmail.com" target="_blank">rev.chip@gmail.com</a>&gt;</span><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">



The decision to close the channel is for symmetry with the &quot;consume&quot; method, which closes the channel if it fails.</blockquote></div><br></div>When basic.consume fails, it is because you try to consume from a queue that does not exist or the queue is exclusive</div>



<div class="gmail_extra">and owned by another connection. This raises a channel exception and that causes the channel to be closed.</div><div class="gmail_extra"><br></div><div class="gmail_extra">This is not specific to basic.consume but all channel exceptions. I personally don&#39;t think making cancellation notifications</div>



<div class="gmail_extra">close a channel improves consistency. I&#39;m not aware of other clients doing this.<span class="HOEnZb"><font color="#888888"><br>-- <br>MK<br><br><a href="http://github.com/michaelklishin" target="_blank">http://github.com/michaelklishin</a><br>



<a href="http://twitter.com/michaelklishin" target="_blank">http://twitter.com/michaelklishin</a><br>
</font></span></div></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>