diff options
author | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-03 16:03:16 (GMT) |
---|---|---|
committer | Joerg Bornemann <joerg.bornemann@nokia.com> | 2009-09-04 09:21:00 (GMT) |
commit | 3035e9cd81dcadb23d77c69d4b1e96ec1550d67c (patch) | |
tree | 8b52a22c110be89911212cfb086d62c3316db991 /src/network/socket/qlocalsocket_p.h | |
parent | 9564ee48e588c602057ee458acfe881385681cf3 (diff) | |
download | Qt-3035e9cd81dcadb23d77c69d4b1e96ec1550d67c.zip Qt-3035e9cd81dcadb23d77c69d4b1e96ec1550d67c.tar.gz Qt-3035e9cd81dcadb23d77c69d4b1e96ec1550d67c.tar.bz2 |
fix disconnect-after-write-problem in QLocalSocket on Windows
If the server disconnects directly after writing its data, like the
localfortuneserver example does, we must close the reading client
socket. Before this patch, an error was yielded.
Task-number: 260631
Reviewed-by: phartman
Diffstat (limited to 'src/network/socket/qlocalsocket_p.h')
-rw-r--r-- | src/network/socket/qlocalsocket_p.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/network/socket/qlocalsocket_p.h b/src/network/socket/qlocalsocket_p.h index a774cbf..a7248f6 100644 --- a/src/network/socket/qlocalsocket_p.h +++ b/src/network/socket/qlocalsocket_p.h @@ -139,7 +139,7 @@ public: void _q_emitReadyRead(); DWORD bytesAvailable(); void startAsyncRead(); - void completeAsyncRead(); + bool completeAsyncRead(); void checkReadyRead(); HANDLE handle; OVERLAPPED overlapped; |