diff options
Diffstat (limited to 'docs')
| -rw-r--r-- | docs/catalog.md | 3 | ||||
| -rw-r--r-- | docs/namespace-sites-validation.md | 28 |
2 files changed, 31 insertions, 0 deletions
diff --git a/docs/catalog.md b/docs/catalog.md index bc308c2..d8757b0 100644 --- a/docs/catalog.md +++ b/docs/catalog.md @@ -287,6 +287,9 @@ control writes, non-seekable EOF, blocking FUSE reads concurrent with other requests, and 40 flush/clunk cycles without exhausting background readers. The Chromium test navigates a real mounted fixture, reads a 180 KB file and opens/stops a live event stream directly from its directory entry. +It also checks exact multi-frame bytes under parallel load, alongside canceled +downloads and synchronous metadata requests. Asynchronous host-read replies +wait for output space rather than overfilling the shared 9P connection. ## Publication and namespace policy diff --git a/docs/namespace-sites-validation.md b/docs/namespace-sites-validation.md index 64858fc..e73a572 100644 --- a/docs/namespace-sites-validation.md +++ b/docs/namespace-sites-validation.md @@ -72,3 +72,31 @@ IPv6 site requests return 200. An actual café build requested through prefixed generation; no preview daemon was started. `zig build -Doptimize=ReleaseSafe e2e` passes all 32 original gateway scenarios. + +## Parallel-read follow-up + +A final cold browser run exposed an intermittent load failure despite earlier +successful runs. Sixteen concurrent large-asset requests reproduced HTTP 502s: +independent host-read completions could overfill the runner's bounded 9P output +queue. The synchronous dispatch path already checked output space, but these +asynchronous completions bypassed it. + +`Runner.Conn.replyAsync` now waits on an output-space condition, reserving one +additional full frame for an already-dispatched synchronous handler. It waits +without the catalogue mutex, remains cancellable, and is joined before slot +reuse. HTTP streaming now aborts an upstream read error instead of ending a +truncated response successfully. + +`test/web/parallel_reads.mjs` checks 80 exact multi-frame responses with 16 +simultaneous readers, 40 interrupted downloads and mixed HEAD requests. It is +part of the mounted-host browser fixture and can also be run read-only against +the live café: + +``` +node test/web/parallel_reads.mjs http://127.0.0.1:8090/sites/cafe/ \ + /home/goblin/.local/state/9web/public/cafe +``` + +The deployed service passes this load test against 37 café source files, followed +by the complete live browser traversal again. Protocol/unit, catalogue, mounted +host, HTTP FS, mux, UI and original 32-scenario E2E checks pass after the fix. |
