The problem with that is, according to my colleagues, that this does not work when you don’t know the size in advance. We tried it with large blocks and had problems with missing errors. But this was my initial reaction, too. I’m not ruling out a problem in our code. Now I think maybe connect two processes with a pipe to decouple them.
Related topics
| Topic | Replies | Views | Activity | |
|---|---|---|---|---|
| Lwt_unix.read from a large file and scheduling | 5 | 2207 | July 7, 2017 | |
| Async or Lwt. Multiple source, single reader | 11 | 998 | May 26, 2023 | |
| Lwt alternative to async.pipe | 3 | 1003 | February 13, 2021 | |
| Lwt, message queue, multiple writer, single reader | 10 | 2291 | September 21, 2018 | |
| `Lwt.asyc` thread not executing with blocking read | 7 | 728 | August 17, 2022 |