Features
-
Eio_unix.set_signal(merged, #956): Installs signal handlers that wake the scheduler via a pipe, fixing a race where signals arriving just beforepoll(2)were delayed until the next timer. Closes #732 and #946; supersedes #948. -
Flow.Pi.simple_copy(merged, #954): UsesRead_source_bufferwhen the source supports it, avoiding an intermediate buffer allocation. NewEio_mock.Flow.limit_readsandEio_mock.Flow.trace_readsreplace the removedset_copy_method.
Fixes
-
eio_posixwake-up pipe (merged, #957):Sched.clear_event_fd,Sched.wakeup, andSignal_fd.acknow retry onEINTR. Prevents crashes in long-running macOS servers where a concurrent pipe writer and a signal interrupt a read. -
opam install -t eio_main(merged, #955): Chown tests are skipped when the opam sandbox blocks ownership changes, fixing a build failure.
Compatibility
- Socket I/O (merged, #951):
eio_posixnow always usesrecvmsg/sendmsgwithMSG_DONTWAIT.Eio_unix.Net.import_socket_streamon files or pipes now raisesSocket operation on non-socketrather than silently working.
Proposals
-
Executor_poolresilience (open, #959): The pool continues when some worker domains fail to start (e.g.ENOMEMfromRLIMIT_MEMLOCKin containers) instead of killing the whole program. A second optional commit drops the per-domain io_uring fixed buffer, cutting memlock cost ~30×. -
io_uring in containers (open, #958): Documents that
Eio.Domain_managerdomains have no io_uring fallback;ENOMEMunder Docker's 8 MiBRLIMIT_MEMLOCKkills the process. Affects Semgrep CI and similar multi-process workloads.