Raito Bezarius
f8ccd9d572
libutil/async-io: augment read type safety w.r.t to EOFs
...
Usually, EOFs are represented by returning 0 in the `read` APIs, at
least, this is what read(2) dictate.
As clever creature, we may sum zeroes sometimes (advanced form:
`buf->added(got)`) and forego handling the EOF condition.
To avoid the bug that lurked in remote-store.cc and caused busy looping
if the remote end disconnects suddenly, we return
`Result<Option<size_t>>` forcing the caller to perform a specific
processing for the EOF situation.
The conversion did not raise any other offending code path.
Change-Id: I185fdcb77aa82d87ab0802d66ac37c1363657a73
Signed-off-by: Raito Bezarius <raito@lix.systems >
2025-07-23 10:35:37 +00:00
..
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-02-28 16:17:17 +01:00
2025-06-10 20:50:00 +02:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-03-25 10:44:50 +01:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-07-23 10:35:37 +00:00
2025-03-03 20:48:59 +01:00
2025-05-27 22:20:22 +00:00
2025-04-05 21:57:45 +02:00
2025-06-17 14:34:05 +02:00
2025-07-23 10:35:37 +00:00
2025-07-23 10:35:37 +00:00
2024-11-19 22:55:32 +00:00
2025-07-15 06:40:48 +00:00
2024-11-19 22:55:32 +00:00
2025-03-03 20:48:59 +01:00
2024-11-19 22:55:32 +00:00
2025-01-11 20:42:30 +01:00
2025-07-18 18:57:19 +02:00
2025-06-11 15:53:04 +02:00
2024-11-19 22:55:32 +00:00
2025-04-06 11:52:32 +02:00
2025-06-10 13:58:08 +02:00
2025-02-23 17:18:48 +00:00
2024-11-19 22:55:32 +00:00
2025-07-23 10:35:37 +00:00
2025-06-15 15:35:51 +02:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-02-22 20:37:45 +01:00
2025-05-20 17:43:46 +00:00
2025-03-23 20:42:39 +00:00
2025-06-10 20:50:00 +02:00
2024-11-19 22:55:32 +00:00
2025-03-25 10:44:52 +01:00
2025-03-25 10:44:52 +01:00
2024-11-19 22:55:32 +00:00
2025-03-11 20:21:24 +01:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-07-14 17:02:30 +00:00
2025-07-14 17:02:30 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-04-06 11:52:32 +02:00
2025-03-25 10:44:52 +01:00
2025-03-25 10:44:52 +01:00
2025-07-20 11:06:05 +03:00
2025-07-15 06:40:48 +00:00
2025-07-23 10:35:37 +00:00
2025-06-24 00:28:09 +02:00
2024-11-19 22:55:32 +00:00
2025-02-22 18:33:51 -08:00
2025-04-06 12:14:38 +02:00
2025-01-19 16:40:26 +01:00
2025-04-24 13:48:15 +00:00
2024-11-19 22:55:32 +00:00
2025-06-11 18:11:57 +00:00
2025-06-11 18:11:57 +00:00
2025-05-03 23:16:48 +02:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-06-11 18:11:57 +00:00
2025-06-11 18:11:57 +00:00
2025-03-25 10:44:52 +01:00
2025-06-13 18:15:47 +00:00
2025-04-08 12:13:42 +00:00
2025-05-19 15:35:52 +02:00
2025-01-16 00:12:57 -08:00
2025-04-06 12:14:38 +02:00
2025-06-13 18:15:47 +00:00
2024-11-19 22:55:32 +00:00
2025-02-28 18:17:47 -08:00
2025-07-15 20:33:30 +02:00
2025-07-11 19:41:18 -07:00
2025-07-11 19:41:18 -07:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-06-11 22:28:44 +02:00
2025-01-10 15:20:27 -08:00
2025-01-10 15:20:27 -08:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-07-04 14:01:11 +02:00
2025-07-04 14:01:11 +02:00
2025-04-06 20:29:25 +02:00
2025-06-13 18:15:47 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-04-24 13:48:15 +00:00
2025-04-24 13:48:15 +00:00
2024-11-19 22:55:32 +00:00
2025-01-23 15:53:50 +00:00
2025-07-15 20:33:30 +02:00
2025-07-15 20:33:30 +02:00
2025-06-17 14:34:05 +02:00
2025-06-17 15:25:32 +02:00
2025-04-24 13:48:15 +00:00
2024-11-19 22:55:32 +00:00
2025-07-06 17:47:42 +02:00
2025-07-06 10:45:55 +00:00
2025-01-10 15:20:27 -08:00
2025-01-10 15:20:27 -08:00
2024-11-19 22:55:32 +00:00
2025-04-06 12:14:38 +02:00
2025-01-19 09:55:10 +01:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-07-07 18:13:16 +00:00
2025-04-06 12:14:38 +02:00
2024-11-19 22:55:32 +00:00
2025-05-18 21:09:16 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-04-06 12:14:38 +02:00
2025-03-05 18:49:45 +01:00
2025-04-06 12:14:38 +02:00
2025-03-26 10:40:50 -07:00
2025-07-15 20:33:30 +02:00
2025-07-15 20:33:30 +02:00
2025-06-13 18:15:47 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-04-24 13:48:15 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2025-04-24 13:48:15 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00
2024-11-19 22:55:32 +00:00