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

Python Client messaging/endpoints.py Connection Class: def check_closed(self): method crashes when called.

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.7
    • 0.9
    • Python Client
    • None
    • RHEL 5.0 Python2.7

    Description

      When calling the Connection Classes .check_closed method an exception is raised:

      Traceback (most recent call last):
      File "<test>/Harness_Test.py", line 24, in test_create_connection
      self.assertFalse(connection.check_closed() )
      File "/usr/local/lib/python2.7/site-packages/qpid/messaging/endpoints.py", line 200, in check_closed
      if self.closed:
      AttributeError: Connection instance has no attribute 'closed'

      The fix is pretty simple, get rid of the method, or add a self.closed flag to indicate failure...

      Attachments

        1. QPID-3063.patch
          0.9 kB
          Gordon Sim

        Activity

          People

            gsim Gordon Sim
            nick.capito Nick Capito
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Time Tracking

                Estimated:
                Original Estimate - 1h
                1h
                Remaining:
                Remaining Estimate - 1h
                1h
                Logged:
                Time Spent - Not Specified
                Not Specified