Skip to content

Commit

Permalink
Revert "Correctly raise OS error in socketpool_socket_recv_into()"
Browse files Browse the repository at this point in the history
This reverts commit 7e6e824.

Fixes adafruit#7770

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

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

Both adafruit#7770 and adafruit#7606 should be re-tested. I didn't test.
  • Loading branch information
jepler committed Mar 22, 2023
1 parent 4525714 commit e05f0ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ports/raspberrypi/common-hal/socketpool/Socket.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit e05f0ba

Please sign in to comment.