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

QAbstractSocket::waitForConnected performs unnecessary reverse name lookup...

    XMLWordPrintable

Details

    • Task
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • None
    • Network: Sockets
    • None
    • 0e6361d31693ec426774494cd8d3a5a46ae93ed1

    Description

      Unlike QAbstractSocket::connectToHostImplementation does, QAbstractSocket::waitForConnected does not check whether the current host name is an ip address before doing DNS query on it. As a result, it ends up performing an unecessary and sometimes expensive reverse name lookup. Please change waitForConnected to do the same thing connectToHostImplementation does.

      Attachments

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

        Activity

          People

            xcm Martin Petersson (Inactive)
            adawit Dawit A
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes