lshift/accent — pull request #1 by paulj (2011-11-07 03:29:37+00:00)
Title: Connection loss isn't properly handled by consumers or channel

A number of issues currently exist in the connection loss handling code. Specifically:

- If the entire connection is lost, no channel shutdown signal is issued by Rabbit, so the AccentChannel doesn't tear down resources;
- The connection is loss is sent to underlying Consumers, which results in the default RabbitMQ QueueingConsumer implementation exploding when a new message arrives;

This patch corrects this by:

- Subscribing AccentChannel to Connection as well;
- Not proxying Shutdown Signals to consumers attached via an AccentConsumer