Skip to content

Match replies by osc/xid - #12

Merged
Varitras merged 13 commits into
mainfrom
feature/xid
Nov 1, 2026
Merged

Varitras merged 13 commits into
mainfrom
feature/xid

Conversation

@Varitras

@Varitras Varitras commented Nov 1, 2026

Copy link
Copy Markdown
Owner
  • Every value request carries a transaction id; a reply line with another id is a late answer and dropped. Error replies echo the id too (measured on both models).
  • The stale-line drain now runs only after an answer matched by path, so it no longer costs 10 ms per request.
  • Requests the id would push past the 29-token limit (20-band EQ sets) and the discovery's schema/limits walk go without one.
  • Simulator: read-only fields answer 405 on LOCAL, error replies echo the xid, requests over 29 tokens get 413.

Measured on a KH 120 II: writability is checked before the CONTROL
switch, so only a writable leaf gets 401.
Every value request carries a transaction id; a line with another id is a
late answer and dropped, so the stale drain is only needed after an answer
matched by path. Requests over the 29-token limit go without an id.
A firmware sending the xid before the value left the value line behind,
to be taken as the answer to the next request. A JSON null with the own
xid is the answer, not a gap.
Measured on both models: a flat 413 without an xid.
@Varitras
Varitras merged commit 8317c5c into main Nov 1, 2026
9 checks passed
@Varitras
Varitras deleted the feature/xid branch November 1, 2026 17:25
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