Uploaded image for project: 'Qpid Proton'
  1. Qpid Proton
  2. PROTON-2104

[c++ client] Error specifying url with IPv6 literal host address

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects Version/s: proton-c-0.29.0
    • Fix Version/s: None
    • Component/s: cpp-binding
    • Labels:
      None

      Description

      C++ examples simple_send and simple_recv accept IPv6 loopback address [::1] but have issues with other apparently legal addresses.

      These work on my system:

      {{
      ping6 fe80::c662:ab36:1ef1:1596
      ping6 fe80::c662:ab36:1ef1:1596%wlp4s0
      ping6 fe80:0000:0000:0000:c662:ab36:1ef1:1596
      }}

      Wrapping the host part in square brackets and sending that address to simple_send fails:

      {{
      ./simple_send -a [fe80::c662:ab36:1ef1:1596]:5672/abc
      proton:io: Invalid argument - on connect fe80::c662:ab36:1ef1:1596:5672
      }}

      All three variants of the address that work with ping6 fail with the same error on the simple_send command line.

       

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              chug Charles E. Rolke
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: