[rabbitmq-discuss] .NET client: intermittent AlreadyClosedException - connected host has failed to respond

Emile Joubert emile at rabbitmq.com
Wed Nov 28 10:18:10 GMT 2012


Hi Andrei,

On 27/11/12 17:32, Andrei Volkov wrote:
> I think (but not sure) it seems to happen after a period of inactivity,
> after the connection has been open but idle for a while.

In that case a possible cause is that the connection dropped due to a 
time-out. You can work around this by enabling AMQP heartbeats. They 
will prevent inactivity and detect broken connections sooner. See the 
client library documentation for 2.8.7:

http://www.rabbitmq.com/releases/rabbitmq-dotnet-client/v2.8.7/rabbitmq-dotnet-client-2.8.7-client-htmldoc/html/type-RabbitMQ.Client.ConnectionFactory.html#field-F:RabbitMQ.Client.ConnectionFactory.RequestedHeartbeat

You can also diagnose connectivity issues by issuing "rabbitmqctl 
list_connections" on the broker and by checking "netstat" on both the 
broker and the client.




-Emile





More information about the rabbitmq-discuss mailing list