Details
-
Bug
-
Resolution: Invalid
-
Not Evaluated
-
None
-
5.0.2, 5.2.1
-
None
-
Windows 7 Ultimate, 32 bit
Description
In the following code snippet, under Windows 7 (32-bit), waitForConnected(5000) waits about 30-40 seconds instead of 5. Under Xubuntu, the issue doesn't show up, and it waits only 5 seconds.
#include <QCoreApplication>
#include <QTcpSocket>
int main(int argc, char *argv[])
{
QCoreApplication a(argc, argv);
QTcpSocket socket;
qDebug() << "connecting";
socket.connectToHost("192.168.78.234" , 2000);
qDebug() << "wait for connect return " << socket.waitForConnected(5000);
return a.exec();
}