Merge pull request #7779 from jepler/revert-socket-error

Revert "Correctly raise OS error in socketpool_socket_recv_into()"
This commit is contained in:
Dan Halbert 2023-03-22 20:10:03 -04:00 committed by GitHub
commit 2282d8ea2d
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;
}
if (ret == (unsigned)-1) {
mp_raise_OSError(_errno);
return -_errno;
}
return ret;
}