Features
-
io_uring for additional operations (Linux).
ftruncate,fdatasync,fsync,shutdown,socket,bind, andlistennow use io_uring when available, reducing syscalls on the hot path. Merged by @avsm. #850 -
Cross-platform socket options.
TCP_KEEPIDLEmaps toTCP_KEEPALIVEon macOS. Per-platform availability is now documented in the API.TCP_FASTOPENis disabled on non-Linux systems due to inconsistent behaviour. Merged by @talex5. #890 -
Eio_unix.Errmodule. New public module providingErr.vto wrapUnix_errorintoEio.Ioexceptions, replacing ad-hocwrap/wrap_fshelpers across backends. Merged by @talex5. #887 -
Pre-connect socket options (proposal). A GADT-based options list allows setting socket options (e.g.
reuse_addr) beforeconnect, building on earlier work by @art-w. Open, under review. #875
Fixes
-
Sockopt exception handling restored. Sockopt functions again raise
Eio.Ioexceptions in all failure cases; a regression introduced by the stub relocation in #889. Merged by @talex5. #891 -
macOS
POLLNVALfallback (open).eio_posixresumes waiters with anUnpollableexception whenpoll()returnsPOLLNVAL(e.g./dev/tty,/dev/null), then polls those fds viaselect()in a systhread. Open, not yet merged. #893
Compatibility
- Sockopt stubs moved to
eio.unix. C stubs for extended socket options are now shared betweeneio_linuxandeio_posix, and are structured to compile on Windows (untested). Merged by @talex5. #889