QLocalSocket::readData (Windows) must return -1 on EOF
authorJoerg Bornemann <joerg.bornemann@nokia.com>
Thu, 10 Sep 2009 15:48:17 +0000 (17:48 +0200)
committerJoerg Bornemann <joerg.bornemann@nokia.com>
Thu, 10 Sep 2009 15:50:40 +0000 (17:50 +0200)
commit29259d93691f0fc7790108c00a8718c07fa3ae5e
tree50b2feb50bb1919e3fa9ae0becb6c4c83532a02f
parent04c518e7629945a48e7e8e9216229cc879055ff4
QLocalSocket::readData (Windows) must return -1 on EOF

If we've detected a broken pipe and we have no more data in the
read buffer, then we return -1 to signal EOF.
Additionally, we close the QLocalSocket.

Reviewed-by: ossi
src/network/socket/qlocalsocket_win.cpp