Merge pull request #7623 from DavePutz/issue_7606

Correctly raise OS error in socketpool_socket_recv_into()
This commit is contained in:
Dan Halbert 2023-02-21 16:17:30 -05:00 committed by GitHub
commit c7d9eecfd6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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;
} }