Repository navigation
ubusio v0.2.1
Pre-1.0: the API may still change. No change of the exported API against v0.2.0.
Fixes the known issues listed for v0.2.0.
Changed behaviour
- The default request timeout bounds a whole operation, the wait for a new connection and for a restore under way included.
WithRequestTimeout(0)disables it. - The subscription changes of one
Subscribertake turns. Subscribeof a path that is only watched, because the object is missing, returnsStatusNotFound(the watch stays) instead of nil.
Fixed
- Waiting for another subscription change ignored the caller's context.
- A cancelled
Subscribe,WatchorSubscribeIDcould leave the subscription at ubusd. - A concurrent call for the same target could report success before the subscription existed.
- Subscribing by path and by id to one object delivered notifications twice.
- A cut off lazy connection attempt could report
i/o timeoutinstead ofcontext.DeadlineExceeded. Subscriberacing with the appearance of the object could reportStatusNotFound.
See CHANGELOG.md, also for the known issues.
Verification
An arm64 virtual machine with ubusd of OpenWrt 21.02 and 25.12 (race detector included) and scripts/ci.sh.
Not run for this release: physical hardware, emulation, long stress runs, benchmarks:
docs/compatibility.md.