Skip to content

Commit e05f0ba

Browse files
committed
Revert "Correctly raise OS error in socketpool_socket_recv_into()"
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.
1 parent 4525714 commit e05f0ba

File tree

1 file changed

+1
-1
lines changed
  • ports/raspberrypi/common-hal/socketpool

1 file changed

+1
-1
lines changed

ports/raspberrypi/common-hal/socketpool/Socket.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1109,7 +1109,7 @@ int socketpool_socket_recv_into(socketpool_socket_obj_t *socket,
11091109
break;
11101110
}
11111111
if (ret == (unsigned)-1) {
1112-
mp_raise_OSError(_errno);
1112+
return -_errno;
11131113
}
11141114
return ret;
11151115
}

0 commit comments

Comments
 (0)