Skip to content

ubusio v0.2.1

Choose a tag to compare

@ddffcczz ddffcczz released this 04 Dec 10:23
· 12 commits to main since this release

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 Subscriber take turns.
  • Subscribe of a path that is only watched, because the object is missing, returns StatusNotFound (the watch stays) instead of nil.

Fixed

  • Waiting for another subscription change ignored the caller's context.
  • A cancelled Subscribe, Watch or SubscribeID could 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 timeout instead of context.DeadlineExceeded.
  • Subscribe racing with the appearance of the object could report StatusNotFound.

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.