QNetworkAccessManager: delay IPv4 or IPv6 based on getaddrinfo order
authorMartin Petersson <martin.petersson@nokia.com>
Mon, 19 Dec 2011 10:02:46 +0000 (11:02 +0100)
committerQt by Nokia <qt-info@nokia.com>
Wed, 21 Dec 2011 23:47:03 +0000 (00:47 +0100)
commit54c487cdd2950ac447f9164a9fea2d0468d87433
treed3797a2a8495a9d0e4a3119b72949830e7761604
parentbc8f25c7e6ab73441c46ea41362a054843b42ec3
QNetworkAccessManager: delay IPv4 or IPv6 based on getaddrinfo order

Instead of always delaying IPv4 when we have both Ipv4 and IPv6 we
should use the order we get from getaddrinfo to descide which one
that should be delayed.

Task-number: QTBUG-23066
Change-Id: Ibe8c4d7000abd6e57fe8c6afac8a4a843e17ff27
Reviewed-by: Peter Hartmann <peter.hartmann@nokia.com>
Reviewed-by: Thiago Macieira <thiago.macieira@intel.com>
Reviewed-by: Shane Kearns <shane.kearns@accenture.com>
src/network/access/qhttpnetworkconnection.cpp
src/network/access/qhttpnetworkconnection_p.h
src/network/access/qhttpnetworkconnectionchannel.cpp