Hi all,<div><br></div><div>I'm using pika 0.9.5 and&nbsp;trying to figure out how to detect whether RabbitMQ is still available/unavailable after creating a connection to it.</div><div>When I stop Rabbit between the channel creation and publishing the message, there appears to be no way of detecting whether rabbit is still alive/available.</div><div>Publishing the message doesn't generate any error, connection.is_open always returns True...</div><div><br></div><div>Anyone an idea how to deal with this?</div><div><br></div><div>Cheers,</div><div><br></div><div>J</div><div><br></div><div><br></div><div><div>#!/usr/bin/python</div><div><br></div><div>import pika</div><div>from pika.adapters import SelectConnection</div><div>from pika.adapters import BlockingConnection</div><div>import time</div><div><br></div><div>parameters = pika.ConnectionParameters(host='sandbox')</div><div>connection = BlockingConnection(parameters)</div><div><br></div><div>channel = connection.channel()</div><div><br></div><div>channel.queue_declare(queue="test", durable=True, exclusive=False, auto_delete=False)</div><div><br></div><div><br></div><div>time.sleep(10)</div><div>#I stop rabbitmq here</div><div><br></div><div>print connection.is_open #Returns True so this doesn't work</div><div><br></div><div><br></div><div>#this doesn't generate any error</div><div>channel.basic_publish(exchange='', routing_key="test", body="Hello World!",</div><div>&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; properties=pika.BasicProperties(content_type="text/plain", delivery_mode=1))</div></div><div><br></div>