Revert "Correctly raise OS error in socketpool_socket_recv_into()"

This reverts commit 7e6e824d5655026906b6515070aeb604d2ef3426.

Fixes #7770

The change in #7623 needs to be revered; the raise-site added in #7632
is the correct one and the one in socketpool needs to be reverted.

This is not affecting 8.0.x because #7623 was not back-ported to there
before we realized it was not a full fix.

Both #7770 and #7606 should be re-tested. I didn't test.
This commit is contained in:
Jeff Epler 2023-03-22 14:32:00 -05:00
parent 45257147dc
commit e05f0ba3b2
No known key found for this signature in database
GPG Key ID: D5BF15AB975AB4DE

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