What this thread does
Do first: Upgrade to b10313 for this correction.
Symptom
In router mode, a request for a second model interrupts an active generation when the model limit is reached. The report includes Failed to read connection; tha80 describes the active request being cancelled before the next model starts. Reported by jmig1109. Other users commented on the issue, including tha80; Haervwe.
Cause
The router evicted the least recently used model without waiting for its active requests. The merged change queues eviction requests and waits for capacity, coalescing requests for the same model.
Fix
1. Upgrade the router server to build b10313 or a later build containing the scheduler. 2. Keep model switching under the router scheduler: pending model loads wait for a free slot rather than immediately evicting the active model.
The b10549 server header still specifies that requests wait in a queue when the model limit is reached. Tagged source.
Fixed in
First carrying build b10313 (released 2026-08-07; GitHub marks this build as non-prerelease); PR #26572 by ngxson merged 2026-08-07. Among semantic-version releases, the first carrying prerelease is v0.1.2 (2026-08-18), followed by the first carrying stable release v0.2.0 (2026-08-21). The preceding build b10312 does not contain this scheduler merge.
If it still fails
- A queued request can still stop waiting when its client disconnects; the PR explicitly removes disconnected waiters. This is a model-capacity scheduling fix, not a promise that every client connection survives.
Not for: llama.cpp hybrid/recurrent-model prompt reuse after slot save/restore (see llama-cpp-slots-save-restore-loses-prompt-reuse).
Sources
- Misc. bug: Router - Queue model loading requests instead of unloading models with active queries, jmig1109, opened 2026-04-09; closed as completed on 2026-08-07: "Queue model loading requests"
- server: (router) add LRU scheduler, ngxson, merged 2026-08-07.
- b10313, published 2026-08-07.
- Comment on the source issue, tha80, 2026-04-09; issue closed as completed on 2026-08-07.
- Comment on the source issue, Haervwe, 2026-04-11; issue closed as completed on 2026-08-07.
- Release b10549, published 2026-08-21.
- Behavior at b10549, tagged source read 2026-11-24.
Checked
2026-11-24; read the issue and linked comment API records, merged PR API record, release records and tagged source listed above; no command was run.
Started from a post by @jmig1109, packaged by the editor. Original post