Thanks Dave,�<div><br></div><div>But this behavior is right? Why the rabbit dont disconnect client when connection/socket timeout.</div><div><br></div><div>Thiago Burgo<br><br><div class="gmail_quote">2012/8/3 Dave Curylo <span dir="ltr">&lt;<a href="mailto:curylod@asme.org" target="_blank">curylod@asme.org</a>&gt;</span><br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div style="word-wrap:break-word">Thiago,<div><br></div><div>Regarding your consumers, when using the .NET client, you should make sure to set the RequestedHeartbeat property on your ConnectionFactory to a non-zero value. �If you don&#39;t do this, then should a process die without a chance to clean up the connection, it may never get disconnected and you will have to close the connections manually either through the management web interface or rabbitmqctl. �Rabbit seems to hold on to the connections if you don&#39;t do this.</div>
<div><br></div><div>Here is a helpful script if you have a lot of connections and find it tedious to close them using the web UI.</div><div><br></div><div><pre style="line-height:normal;text-indent:0px;letter-spacing:normal;text-align:-webkit-auto;font-variant:normal;text-transform:none;font-style:normal;font-weight:normal;word-spacing:0px">
#!/bin/bash
peerToDisconnect=1.2.3.4
for c in `rabbitmqctl list_connections peer_address pid | grep $peerToDisconnect`;
do
if [ $c != $peerToDisconnect ];
then rabbitmqctl close_connection $c &quot;Orphaned - disconnecting&quot;;
fi;
done
</pre></div><div>-Dave</div><div><br><div><div><div class="h5"><div>On Aug 3, 2012, at 1:10 PM, Thiago Burgo Belo wrote:</div><br></div></div><blockquote type="cite"><div><div class="h5"><div><div>Matthias,�</div><div><br>
</div><div>Has 2 consumers, but this is more strange, because I closed all connections with Rabbit (.NEt Client) and the consumers are Idle since 2012-08-02 15:05:56, the consumers will never die?</div>
<div>Note 1: �I already turned off my computer (client) and the consumer keep alive.</div><div>Note 1: I&#39;m using a non default virtual host, something like /myVirtualHost</div><div><br></div><div>See the attachment.</div>

<div><br></div><div>Thanks,�</div><div><br></div><div>Thiago Burgo</div><div><br></div><div class="gmail_quote">2012/8/2 Matthias Radestock <span dir="ltr">&lt;<a href="mailto:matthias@rabbitmq.com" target="_blank">matthias@rabbitmq.com</a>&gt;</span><br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div>On 02/08/12 20:58, Thiago Burgo Belo wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
My queue with x-expires not expires after timeout, the follow queue was<br>
created and not accessed since (2012-08-02 14:00), and not expired until<br>
now.<br>
<br>
Parameters<br>
x-ha-policy: � �all<br>
x-expires: � � �9000<br>
arguments: � � �<br>
x-match: � � � �any<br>
<br>
durable: � � � �true<br>
<br>
Exclusive owner None Status Idle since<br>
2012-08-02 16:16:58<br>
</blockquote>
<br></div></div>
Does the queue have a consumer? From <a href="http://www.rabbitmq.com/extensions.html#queue-leases" target="_blank">http://www.rabbitmq.com/<u></u>extensions.html#queue-leases</a><br>
&lt;quote&gt;<br>
&quot;Unused means the queue has no consumers, the queue has not been redeclared, and basic.get has not been invoked for a duration of at least the expiration period.&quot;<br>
&lt;/quote&gt;<span><font color="#888888"><br>
<br>
Matthias.<br>
</font></span></blockquote></div><br></div>
</div></div><span>&lt;rabbit.png&gt;</span>_______________________________________________<br>rabbitmq-discuss mailing list<br><a href="mailto:rabbitmq-discuss@lists.rabbitmq.com" target="_blank">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></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>