Linux uses EAGAIN instead of EWOULDBLOCK (only used on Windows)
This commit is contained in:
1 parent
ef4ac51170
commit
2c9109936c
1 file changed
+1
-1
@@ -544,7 +544,7 @@ static int getNetErrorCode(int ret, std::string caller, bool isRW)
|
||||
return -30; // EISCONN
|
||||
case ERRORCODE(ENOTCONN):
|
||||
return -6; // EAGAIN
|
||||
case ERRORCODE(EWOULDBLOCK):
|
||||
case EITHER(WSAEWOULDBLOCK, EAGAIN):
|
||||
case ERRORCODE(EINPROGRESS):
|
||||
if(isRW){
|
||||
return -6; // EAGAIN
|
||||
|
||||
Reference in new issue
Block a user