Merge pull request #7623 from DavePutz/issue_7606
Correctly raise OS error in socketpool_socket_recv_into()
This commit is contained in:
commit
c7d9eecfd6
@ -1109,7 +1109,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket,
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
if (ret == (unsigned)-1) {
|
if (ret == (unsigned)-1) {
|
||||||
return -_errno;
|
mp_raise_OSError(_errno);
|
||||||
}
|
}
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user