Skip to content

Docs: bacaro_get returns ENOTFOUND until dispatch processes snapshot - #15

Merged
bricke merged 2 commits into
mainfrom
docs/late-join-get-race
Apr 30, 2026
Merged

bricke merged 2 commits into
mainfrom
docs/late-join-get-race

Conversation

@bricke

@bricke bricke commented Apr 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • Documents the gotcha where bacaro_get returns BACARO_ENOTFOUND immediately after bacaro_new or bacaro_subscribe, before any bacaro_dispatch call has processed the snapshot reply
  • Explains why: bacaro_get is a pure local cache lookup, snapshot replies sit in a socket buffer until bacaro_dispatch is called
  • Shows two fix patterns: usleep-based polling loop and the more efficient poll-on-fd approach, with explanation of the tradeoff between the two

@bricke
bricke merged commit f234a83 into main Apr 30, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant