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:
@@ -453,6 +453,10 @@ wxSocketError wxSocketImplUnix::GetLastError() const
|
|||||||
case ENOTSOCK:
|
case ENOTSOCK:
|
||||||
return wxSOCKET_INVSOCK;
|
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:
|
case EINPROGRESS:
|
||||||
return wxSOCKET_WOULDBLOCK;
|
return wxSOCKET_WOULDBLOCK;
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user