map EAGAIN to wxSOCKET_WOULDBLOCK too as tit has this meaning for read() (even though it doesn't have it for connect())

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@57603 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Vadim Zeitlin 2008-12-27 18:01:59 +00:00
parent 64b1cea09a
commit 42dfe2b259

View File

@ -453,6 +453,10 @@ wxSocketError wxSocketImplUnix::GetLastError() const
case ENOTSOCK:
return wxSOCKET_INVSOCK;
// unfortunately EAGAIN only has the "would block" meaning for read(),
// not for connect() for which it means something rather different but
// we can't distinguish between these two situations currently...
case EAGAIN:
case EINPROGRESS:
return wxSOCKET_WOULDBLOCK;