Should txamqp delete channels when closed?
With the addition of the connectionLost() method I am getting Closed() exceptions from some of my test cases. The exceptions occur because the channels are closed and then the connection is disconnected.
If a closed channel exists and closed() is called on AMQClient, txamqp will attempt to close all stored channels.
One solution is to delete a channel when it has closed. A deferred can be added to the channel protocol that gets triggered during the channels close() method. A callback can they be added to the close deferred to delete the channel from the channels dict on AMQClient.
Does this sound like a reasonable solution or is there something I am not considering?
Additionally the callback could also be used by third party developers to detect channel closures.
Thanks,
Dan
Question information
- Language:
- English Edit question
- Status:
- Answered
- For:
- txAMQP Edit question
- Assignee:
- No assignee Edit question
- Last query:
- Last reply:
Can you help with this problem?
Provide an answer of your own, or ask reverri for more information if necessary.