Fix QNetworkReply test cases that use the MiniHttpServer on windows

The "happy eyeballs" connection code means that IPv4 and IPv6 connections
are both attempted for a http request.
For a normal http server, this is no problem, but the MiniHttpServer in
the test code is very simplistic and cannot cope with more than one
client connected at the same time.
On windows this causes all these tests to fail with timeouts.
Changed the MiniHttpServer to listen on IPv4 only instead of Any address.

Change-Id: I81e249997d894d266001da474a351b1f5642599e
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
This commit is contained in:
Shane Kearns 2011-12-19 16:52:59 +00:00 committed by Qt by Nokia
parent 9ffd69a6a6
commit 0443a51228

View File

@ -463,7 +463,7 @@ public:
if (useipv6) {
listen(QHostAddress::AnyIPv6);
} else {
listen();
listen(QHostAddress::AnyIPv4);
}
if (thread) {
connect(thread, SIGNAL(started()), this, SLOT(threadStartedSlot()));