A response holds its share of valley-web's response budget until it is written (`webui/server/server.go`), and a write may take as long as the server's write timeout. A handful of connections that request large pages (a knot with many comments, a large directory or file) and never read them hold the whole budget; every other rendered page then answers 503 until the timeout, and the client can repeat it. `TestSlowReadersShareTheBudget` shows the behavior and checks memory only.
A fix, one or more of: a write deadline per response scaled to its size (`http.ResponseController.SetWriteDeadline`); part of the budget reserved for small pages; a limit on concurrent responses per client.
Fixed when slow readers of large pages cannot stop small pages from rendering, and a test checks that small pages still render while the budget is held.
Source: 2026-10-26, review of the web UI as landed on main at `ac8c5f17`.
Comments
contributor2026-10-26 19:36 UTC
Change valley:the-valley/kmvzpxsoqvsnzrplxpxkyrskyuqrnymo landed: v6 as f5c9a830d01e49c095e007aa964533f507db60ee.