IOS/Network: Handle SO_ENETRESET

This commit is contained in:
Sepalani 2017-06-04 03:38:48 +01:00
parent 3b48e613e5
commit 55a59421d9
1 changed files with 2 additions and 0 deletions

View File

@ -83,6 +83,8 @@ static s32 TranslateErrorCode(s32 native_error, bool isRW)
case ENOMEM: // See man (7) ip
case ERRORCODE(ENOBUFS):
return -SO_ENOMEM;
case ERRORCODE(ENETRESET):
return -SO_ENETRESET;
case EITHER(WSAEWOULDBLOCK, EAGAIN):
if (isRW)
{