f7f6fe0578
Multiplexing matters — MoQ audio rooms run hundreds of concurrent streams (one per Opus frame). Earlier diagnosis showed our endpoint was hard-capped at ~23 streams/sec because spawning 1999 simultaneous coroutines all racing :quic's single conn.lock cratered throughput. Diagnosis from the qlog/output.txt: 1359 GETs processed in 58s. Lock contention scales superlinearly with suspended coroutines: - every drainOutbound walks streamsList O(N) - every openBidiStream queues behind every other waiter - the dispatcher thrashes context-switching across 1999 channels Fix: process the multiplexing testcase's URLs in chunks of 64. Each chunk is fully parallel on the wire (what the runner's tshark multiplexing check verifies — streams overlap in time WITHIN a chunk), and conn.lock only ever has ~64 live waiters instead of ~1999. Predicted throughput jump from 23 to ~600+ streams/sec. 1999 files in ~3 seconds instead of timing out at 60. Per-stream timeout still wraps each get() — a single hung stream surfaces as status=0 instead of stalling its chunk's await. This is the right answer for the throughput angle. The conn-lock split remains a follow-up for genuinely-stratospheric stream counts (10k+), but 64-wide concurrency comfortably handles the runner's 1999 and real MoQ audio-room load shapes (hundreds of concurrent streams). https://claude.ai/code/session_01HcvfQq1ttPV9PkRoJb4nyT