2 Commits

Author SHA256 Message Date
Alphaeus Mote 19f6b48a79 fix(files): a cancelled transfer's slot is not refused as busy; close after answers
ACancelledDownloadReleasesTheDevice failed most runs on unmodified main
over a real NATS server (5 of 6 here), two ways:

- "busy": a download stopped from the server frees its slot only once the
  agent hears the abort, and a request arriving just before that was
  refused at once. A request now waits up to 3 s for a slot before it is
  answered busy.
- the listener's session ended while the requests it had handed to the
  thread pool were still writing frames, and the connection was closed
  under them. It now waits (up to 10 s) for them to stop first.

Left: NATS.Net now and then times out writing an unsubscribe on close
after a large publish was cancelled part way; the test's teardown
tolerates that one exception (the connection closes anyway).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-06 22:33:10 -05:00
Alphaeus Mote bcc44038f8 feat(server): device file routes, and browsing and searching S3
files.browse reads and files.manage changes, in device scope and on the audit
trail. Nothing is stored: transfers stream through the node holding the browser's
request. System roles now follow what their version grants, so Operator picks up
new permissions on upgrade.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-11-01 04:17:51 -05:00