Daniël van de Giessen
71866edc13
py/stream: Use detailed error strings for TLS sockets.
...
Both mbedTLS and axTLS have support for producing more detailed error
strings. However, these are not used if the error is raised in stream
protocol functions (read/write/ioctl).
This commit adds support for more detailed error messages from streams.
Under the hood it's using a new MP_STREAM_RAISE_ERROR ioctl request to pass
the error code back to the stream implementation which can raise a more
detailed error. If the ioctl is not implemented, we fall back to the old
behaviour and raise an OSError with the error code.
Currently the detailed messages are only implemented for TLS sockets since
those already had helper functions for raising detailed exceptions, but can
be easily implemented in any other stream.
Signed-off-by: Daniël van de Giessen <daniel@dvdgiessen.nl >
2026-02-07 16:34:20 +11:00
..
2025-11-21 00:07:35 +11:00
2024-03-07 16:25:17 +11:00
2024-03-16 12:19:12 +11:00
2025-06-04 02:21:32 +10:00
2024-09-06 17:14:03 +10:00
2025-05-07 17:03:28 +10:00
2025-08-16 14:52:52 +10:00
2025-07-23 15:47:17 +10:00
2025-06-04 02:21:32 +10:00
2025-05-08 15:32:05 +10:00
2025-08-01 23:03:17 +10:00
2025-08-01 23:03:17 +10:00
2022-05-05 13:30:40 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2025-08-01 23:03:17 +10:00
2024-03-07 14:20:42 +11:00
2026-02-07 16:33:21 +11:00
2024-03-15 12:04:34 +11:00
2024-03-07 14:20:42 +11:00
2025-06-13 16:27:35 +10:00
2024-03-07 14:20:42 +11:00
2024-03-15 12:04:25 +11:00
2024-07-12 22:59:31 +10:00
2025-09-25 23:59:24 +10:00
2025-09-11 12:42:24 +10:00
2025-11-30 23:18:57 +11:00
2024-03-07 14:20:42 +11:00
2023-12-22 10:26:52 +11:00
2024-06-20 00:11:05 +10:00
2024-03-07 14:20:42 +11:00
2025-06-04 02:21:32 +10:00
2025-06-04 02:21:32 +10:00
2024-07-22 10:42:29 +10:00
2024-03-07 14:20:42 +11:00
2025-03-27 11:58:59 +11:00
2025-08-15 01:17:00 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2025-05-19 02:09:40 +02:00
2026-02-07 16:33:21 +11:00
2025-08-01 23:03:17 +10:00
2025-08-01 23:03:17 +10:00
2026-01-27 01:20:36 +11:00
2025-06-10 11:20:38 +10:00
2025-07-17 13:38:58 +10:00
2024-03-07 14:20:42 +11:00
2025-09-28 22:46:05 +10:00
2024-08-08 17:59:32 +10:00
2024-03-15 18:11:28 +11:00
2026-01-04 12:02:59 +11:00
2026-01-04 12:02:59 +11:00
2024-12-20 21:58:50 +11:00
2025-09-11 11:58:29 +10:00
2024-12-10 12:10:36 +11:00
2024-03-07 14:20:42 +11:00
2025-08-11 14:11:56 +10:00
2026-01-26 23:33:11 +11:00
2025-01-02 13:33:39 +11:00
2025-08-15 12:09:13 +10:00
2023-06-08 17:54:14 +10:00
2026-02-07 16:34:20 +11:00
2026-02-07 16:34:20 +11:00
2025-09-28 23:23:04 +10:00
2025-03-06 12:52:35 +11:00
2024-07-04 15:55:03 +10:00
2025-10-05 15:43:02 +11:00
2023-06-08 17:54:14 +10:00
2020-09-08 11:41:31 +10:00
2025-05-08 15:32:05 +10:00
2025-05-20 23:14:41 +10:00
2019-06-03 16:47:35 +10:00
2025-06-10 11:20:38 +10:00
2025-07-17 13:38:58 +10:00
2024-07-12 01:03:46 +10:00
2025-08-25 23:11:33 +10:00
2026-02-05 00:29:36 +11:00
2024-03-16 10:59:03 +11:00
2025-10-01 11:14:39 +10:00
2024-03-07 14:20:42 +11:00
2024-03-07 14:20:42 +11:00
2025-07-09 11:54:21 +10:00
2019-10-29 12:12:37 +11:00
2024-03-07 14:20:42 +11:00
2019-10-29 14:17:29 +11:00
2026-02-07 16:33:21 +11:00
2025-07-23 15:51:08 +10:00
2026-02-07 16:33:21 +11:00
2025-07-24 10:39:41 +10:00
2018-06-06 14:33:42 +10:00
2025-09-28 22:45:30 +10:00
2024-12-23 13:04:54 +11:00
2025-03-27 17:04:12 +11:00
2024-12-23 13:04:54 +11:00
2025-10-04 00:19:40 +10:00
2025-03-06 12:52:35 +11:00
2022-09-19 19:06:07 +10:00
2017-07-18 11:57:39 +10:00