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

TCP connection is not made with DNS address that contains only ipv6 address

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P1: Critical
    • None
    • 5.11.1
    • WebSockets
    • None

    Description

      Our product uses Qt 5.11.1 and we mainly use QWebSocket implementation of a websocket from the library. We noticed that when attempting to use the class with DNS address that contains only ipv6 address the ipv6 tcp connection is not made and in the error message we receive an error QAbstractSocket::SocketError::HostNotFoundError.

      We have therefore a few questions about this behavior. Can you please answer them:

      1. Can you please tell us if QWebSocket supports IPv6?
      2. In case it does not, can a workaround be implemented to support ipv6 for QWebSocket?
      3. If DNS response has mixed ipv4 and ipv6 addresses, what is the behavior of QWebSocket? Does it have a preference to connect? It connects to first address that succeeds or only to the first one?

      Thank you,
      With best regards,

      Attachments

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

        Activity

          People

            kurt.pattyn Kurt Pattyn
            hafshari Hossein Afshari
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes