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

Python client qpid.connection object's string conversion fails with IPv6 addresses

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 0.22
    • Fix Version/s: None
    • Component/s: Python Client
    • Labels:
      None

      Description

      Bug found by Bill Freeman.

      The _str_ method for the qpid.connection object assumes an IPv4 address. If an IPv6 address is returned, it will fail. Example:

      For IPv6 getsockname() returns:

      ('::1', 49845, 0, 0)

      but the conversion uses this format:

      return "%s:%s" % self.sock.getsockname()

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              kgiusti Ken Giusti
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: