<div dir="ltr">My client raise error on 404 error.<div style>I use passive mode for detect exists queue or not. And if it not exists then i try create it without passive. So, i realy cant do something like that:</div><div style>
<br></div><div style>connection->channel_close(1);</div><div style>connecton->channel_open(1);</div><div style><br></div><div style>because "Opening channel: server connection error 503, message: COMMAND_INVALID - second 'channel.open'"</div>
<div style><br></div><div style>Instead this i reopen connect to server, but its not good way.</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">2013/2/5 Tim Watson <span dir="ltr"><<a href="mailto:tim@rabbitmq.com" target="_blank">tim@rabbitmq.com</a>></span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="im">On 4 Feb 2013, at 18:31, Тимур wrote:<br>
<br>
> I found strange behavior in some case. What i do:<br>
><br>
> 1. Connect to server<br>
> 2. Open channel with name is '1'<br>
<br>
</div>Channel's don't have *name* property, so I'm not sure what you're talking about here.<br>
<div class="im"><br>
> 3. Declare queue with passive = 1<br>
><br>
<br>
</div>Does the queue already exist, or are you trying to create it here?<br>
<div class="im"><br>
> And after that i try declare queue with passive = 0 if i receive 404 error in third step. Receive error like 'Declare Exchange: Resource temporary unavailable'. Is it actual behavior?<br>
<br>
<br>
</div>From <a href="http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare.passive" target="_blank">http://www.rabbitmq.com/amqp-0-9-1-reference.html#queue.declare.passive</a><br>
<br>
"bit passive<br>
If set, the server will reply with Declare-Ok if the queue already exists with the same name, and raise an error if not."<br>
<br>
So you would end up with a channel error if the queue doesn't already exit and will need to open a new channel. If that's the case, then it's likely the behaviour you're seeing is consistent but the client error is confusing. The 404 channel error means "The client attempted to work with a server entity that does not exist".<br>
<br>
Cheers,<br>
Tim<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>
</blockquote></div><br></div>