mirror of
https://github.com/mudler/LocalAI.git
synced 2026-11-06 04:23:15 -05:00
The restart spec closed the first runtime and started a second one at once. The fake server lists a link until its handler sees the socket close, so Connected was already true for the old link, and the reply the spec pushed next went to the closing socket and was lost. The spec failed on every run with one CPU and on about one run in three with more. Wait until the fake reports no link before the second runtime starts. 30 runs each at 1, 4 and 20 CPUs under -race now pass, also with six copies running at once. Assisted-by: Claude:claude-sonnet-5-5 go-test