Skip to content

ubusio v0.2.0

Choose a tag to compare

@ddffcczz ddffcczz released this 04 Dec 07:32
· 16 commits to main since this release

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, Close interrupts blocked I/O.
  • Objects and wildcard Lookup are bounded by WithReplyLimits.
  • 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.