Bandwidth test: fix repeat tests failing, add a duration (1-60 s)

The server kept streaming (and holding the one-test lock) after the browser stopped reading, so the
next test got a 409. The server now ends the stream at the chosen duration, the browser reads to the
end, and a new test ends any earlier stream instead of being refused. Errors show in the cell.

Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
This commit is contained in:
neil 2026-10-26 20:29:42 -07:00
parent 169a6154ab
commit 87b92f8332
No known key found for this signature in database
4 changed files with 58 additions and 23 deletions

View file

@ -51,7 +51,11 @@
<div class="meter"><div class="meter-label"><span>Disk</span><span id="m-disk">–</span></div><div class="bar"><div id="b-disk"></div></div></div>
<div class="meter">
<div class="meter-label"><span>Bandwidth</span><span id="bw-result">Not tested</span></div>
<span class="tip" id="bw-tip"><button class="small" id="bw-btn">Test bandwidth</button></span>
<div class="bw-controls">
<span class="tip" id="bw-tip"><button class="small" id="bw-btn">Test bandwidth</button></span>
<label class="bw-seconds">for <input type="number" id="bw-seconds" min="1" max="60" step="1" value="5"> s</label>
</div>
<div class="bw-detail" id="bw-detail"></div>
</div>
</div>
<div class="more-toggle"><button class="ghost small" id="resources-toggle" aria-expanded="false" aria-controls="resources-more">More ▾</button></div>