Repository navigation
ubusio v0.2.0
Pre-1.0: the API may still change.
Added
Conn.Shutdown(ctx): graceful close with a drain.- File descriptor passing (SCM_RIGHTS):
Conn.CallFD,CallIDFD,Request.TakeFD,Request.SetReplyFD. Conn.Monitor: the ubus monitor interface (root only).
Changed behaviour
- Redesigned connection lifecycle: one connection attempt at a time,
Closeinterrupts blocked I/O. Objectsand wildcardLookupare bounded byWithReplyLimits.- Fewer allocations and context switches per request.
Exported API against v0.1.2: only additions. New Stats fields break unkeyed Stats literals.
See CHANGELOG.md for the full list and the known issues.
Verification
Run on two physical routers (OpenWrt 25.12.5 arm64, OpenWrt 21.02.2 ARMv7), an arm64 virtual machine
(21.02 and 25.12, race detector) and under x86-64 emulation. No amd64 or mips hardware.
Exact commits, counts and runs not made:
docs/compatibility.md.
Performance
libubus is faster than ubusio in the speed measurements on both routers:
docs/performance-results.md.