Avoid sending spurious socket read notifications in wxMSW.
authorVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 11:28:15 +0000 (11:28 +0000)
committerVadim Zeitlin <vadim@wxwidgets.org>
Sat, 12 Jun 2010 11:28:15 +0000 (11:28 +0000)
commit12cc077e68bd83587bd00e957d54ed5682a808b7
tree462aa4e0ea638f10e7ae0a861d0f86221cce30f7
parentbb9da4d3cab285815c5b458bd91f8d7fdd0ae6bf
Avoid sending spurious socket read notifications in wxMSW.

If a read notification is generated for a socket, it should be possible to
read something from it without blocking but this doesn't seem to be always the
case under MSW for some reason. And this results in all sorts of problems in
wxSocket and wxIPC code, so check for this at wxSocketImpl level and not send
the notification at all if there is no data to read.

See #11528.

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@64565 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
src/msw/sockmsw.cpp