Network/SocketPoller: Fix cases where EAGAIN is not the same as EWOULDBLOCK (Posix)

This commit is contained in:
Jérôme Leclercq 2017-01-25 15:54:13 +01:00
parent 28965b799e
commit 311e2a545d
1 changed files with 1 additions and 0 deletions

View File

@ -465,6 +465,7 @@ namespace Nz
int errorCode = GetLastErrorCode(); int errorCode = GetLastErrorCode();
switch (errorCode) switch (errorCode)
{ {
case EAGAIN:
case EWOULDBLOCK: case EWOULDBLOCK:
{ {
// If we have no data and are not blocking, return true with 0 byte read // If we have no data and are not blocking, return true with 0 byte read