Uploaded image for project: 'Qpid'
  1. Qpid
  2. QPID-3210

Connection destructor should close the connection

    XMLWordPrintableJSON

Details

    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.

      Attachments

        Activity

          People

            gsim Gordon Sim
            jeromeajot Jerome Ajot
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: