Features
-
Eio_unix.set_signal(merged, #956): Installs signal handlers that wake the scheduler via a pipe. Fixes a race where signals arriving just beforepoll(2)were delayed until the next timer. Closes #732 and #946. -
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.
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.
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. -
Htbl.length/Skiplist.lengthnon-linearizability (open, #191): The Size snapshot can miss a pending forward, yielding sizes outside the valid range. No fix merged. -
Bounded_queue.is_fullnon-linearizability (open, #190): A two-step push leaves the tail pointer stale, sois_fullreads a cached capacity and returnsfalseon a full queue. No fix merged.
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.