Details
-
Bug
-
Status: Closed
-
Major
-
Resolution: Incomplete
-
None
Description
Description of problem:
When a qpid::messaging::Connection goes out-of-scope, it should close itself.
As no data are reachable, it can generate leaks and resource locks if it stays open.
Version-Release number of selected component (if applicable):
All
How reproducible:
Easy
Steps to Reproduce:
1. Create a Connection and Session.
2. Create a Receiver which creates a exclusive queue.
3. Let the connection goes out-of-scope.
Actual results:
The connection is not closed and the queue unreachable.
Expected results:
When a connection goes out-of-scope and cannot be recovered, there is no reason to keep it open and hold the resources (such as Sessions, Senders, and Receivers) attached to it. It should close the Sessions, Receivers, and Senders, and invoke the Sessions, Receivers, and Senders destructors, then close itself.
It should cleanup all data that cannot be reachable.