diff options
author | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-01-29 13:38:09 (GMT) |
---|---|---|
committer | Janne Koskinen <janne.p.koskinen@digia.com> | 2010-01-29 13:38:09 (GMT) |
commit | f4784025082b84a02e51dcde89bf32ad77cb4ccd (patch) | |
tree | e9c63d745d4b96a9e276c23d92d940017811dbb3 /src/network/socket/qnativesocketengine_win.cpp | |
parent | 2812fb6ee0357e4da4d9a776638914416274a2f1 (diff) | |
parent | 4f584d5d4c53d8510a34a698fac0f78c17f6cb93 (diff) | |
download | Qt-f4784025082b84a02e51dcde89bf32ad77cb4ccd.zip Qt-f4784025082b84a02e51dcde89bf32ad77cb4ccd.tar.gz Qt-f4784025082b84a02e51dcde89bf32ad77cb4ccd.tar.bz2 |
Merge branch '4.6' of scm.dev.nokia.troll.no:qt/qt-s60-public into 4.6
Diffstat (limited to 'src/network/socket/qnativesocketengine_win.cpp')
-rw-r--r-- | src/network/socket/qnativesocketengine_win.cpp | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/src/network/socket/qnativesocketengine_win.cpp b/src/network/socket/qnativesocketengine_win.cpp index 7088a57..8177b4f 100644 --- a/src/network/socket/qnativesocketengine_win.cpp +++ b/src/network/socket/qnativesocketengine_win.cpp @@ -1068,7 +1068,7 @@ qint64 QNativeSocketEnginePrivate::nativeRead(char *data, qint64 maxLength) break; case WSAEBADF: case WSAEINVAL: - setError(QAbstractSocket::NetworkError, ReadErrorString); + //error string is now set in read(), not here in nativeRead() break; case WSAECONNRESET: case WSAECONNABORTED: @@ -1199,8 +1199,10 @@ void QNativeSocketEnginePrivate::nativeClose() #if defined (QTCPSOCKETENGINE_DEBUG) qDebug("QNativeSocketEnginePrivate::nativeClose()"); #endif - linger l = {1, 0}; - ::setsockopt(socketDescriptor, SOL_SOCKET, SO_DONTLINGER, (char*)&l, sizeof(l)); + // We were doing a setsockopt here before with SO_DONTLINGER. (However with kind of wrong + // usage of parameters, it wants a BOOL but we used a struct and pretended it to be bool). + // We don't think setting this option should be done here, if a user wants it she/he can + // do it manually with socketDescriptor()/setSocketDescriptor(); ::closesocket(socketDescriptor); } |