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

[Python client] connection.opened() returns True after unsuccessful connection

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Trivial
    • Resolution: Fixed
    • 0.28
    • 0.30
    • Python Client
    • None

    Description

      Description of problem:
      When python connection fails to connect to a broker, connection status is opened == True. After unsuccessfull connection, the state of Connection object should be False.

      How reproducible:
      100%

      Steps to Reproduce:
      1. create a connection to nonexisting broker in python
      2. check return value od connection.opened()
      (or see below reproducer)

      Actual results:
      True

      Expected results:
      False

      Reproducer script:

      from qpid.messaging import *

      parms = {}

      try:
      connection = Connection("invalid-hostname", **parms)
      connection.open()
      except ConnectionError,e:
      print e
      print "connection.opened=%s" %(connection.opened())

      Attachments

        Issue Links

          Activity

            People

              pmoravec Pavel Moravec
              pmoravec Pavel Moravec
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: