summaryrefslogtreecommitdiffstats
path: root/src/network/socket
diff options
context:
space:
mode:
authorMarkus Goetz <Markus.Goetz@nokia.com>2010-01-06 09:05:09 (GMT)
committerMarkus Goetz <Markus.Goetz@nokia.com>2010-01-06 09:05:09 (GMT)
commit1f46cf2aa1a0a1c0d60cfaea63b572bd8a65a0cd (patch)
tree34a75c3c0fec934feed7614bb2790f43190ab554 /src/network/socket
parent1520af54aff4aece360dad7310d742ede3317c63 (diff)
downloadQt-1f46cf2aa1a0a1c0d60cfaea63b572bd8a65a0cd.zip
Qt-1f46cf2aa1a0a1c0d60cfaea63b572bd8a65a0cd.tar.gz
Qt-1f46cf2aa1a0a1c0d60cfaea63b572bd8a65a0cd.tar.bz2
QAbstractSocket: Warn when wrong QHostInfo was received
Let's see if this happens. Reviewed-by: Thiago
Diffstat (limited to 'src/network/socket')
-rw-r--r--src/network/socket/qabstractsocket.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/network/socket/qabstractsocket.cpp b/src/network/socket/qabstractsocket.cpp
index 8b4f364..0d35f2d 100644
--- a/src/network/socket/qabstractsocket.cpp
+++ b/src/network/socket/qabstractsocket.cpp
@@ -873,6 +873,10 @@ void QAbstractSocketPrivate::_q_startConnecting(const QHostInfo &hostInfo)
if (state != QAbstractSocket::HostLookupState)
return;
+ if (hostLookupId != -1 && hostLookupId != hostInfo.lookupId()) {
+ qWarning("QAbstractSocketPrivate::_q_startConnecting() received hostInfo for wrong lookup ID %d expected %d", hostInfo.lookupId(), hostLookupId);
+ }
+
addresses = hostInfo.addresses();
#if defined(QABSTRACTSOCKET_DEBUG)