Details
-
Task
-
Resolution: Done
-
P3: Somewhat important
-
None
-
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.