Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-24881

Connecting to proxy may fail if host has both IPv4 and IPv6 addresses

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P3: Somewhat important P3: Somewhat important
    • None
    • 4.8.0, 5.0.0
    • Network: Proxies
    • None

      Has several preconditions:
      1. proxy is configured with a host name, not an IP address
      2. QHostInfo returns both IPv4 and IPv6 addresses
      3. proxy is only listening on one address (typically the IPv4 address)
      4. The address list returned by QHostInfo has the wrong address first (e.g. IPv6 first)

      The problem is that the other addresses in the list are not tried if connection is refused on the first address.

      Easiest to reproduce by using the test server, and putting the IPv6 address before the IPv4 address in your hosts file.
      Run the tst_qnetworkreply autotest, and you'll see many failures.

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

            Unassigned Unassigned
            shkearns Shane Kearns
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:

                There are no open Gerrit changes