Skip to content

Keep FlowBase command updates responsive during RPC - #98

Open
kylevedder wants to merge 1 commit into
i2rt-robotics:mainfrom
kylevedder:codex/fix-flow-client-races
Open

kylevedder wants to merge 1 commit into
i2rt-robotics:mainfrom
kylevedder:codex/fix-flow-client-races

Conversation

@kylevedder

@kylevedder kylevedder commented Sep 20, 2026 •

Copy link
Copy Markdown

Waiting for a FlowBase RPC reply holds the command lock, blocking local velocity updates and potentially leaving the publisher running after close. Remote command arrays can also change while the control loop reads them.

Snapshot commands before RPC and make publication waits interruptible while preserving recovery from temporary stalls and disconnects. Close the transport once when stopping the publisher, and read remote velocity, frame, and timeout validity as one snapshot.

Publish command snapshots outside the command lock. Keep connection and reply waits interruptible, recover from transient failures, and close the transport once. Read remote velocity, frame, and validity together.
@kylevedder
kylevedder force-pushed the codex/fix-flow-client-races branch from a8607c0 to a7385db Compare September 20, 2026 10:49

This branch has not been deployed

No deployments
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