mirror of
https://github.com/hasso5703/alzeo.git
synced 2026-12-06 12:54:19 +01:00
The pump read the engine into a queue of 1,024 events and waited when it was full: behind a
client that read nothing, it read nothing more, the end included, and what the proxy decides at
an engine's end (out of a stop's reach, the order read in systemd, the binding of decision
1019, the order told to the other box) waited for the relay to reach it. The twelfth to
fifteenth reviews of v1.43.0 found a window in that each time.
- The pump puts into a _Spool that never waits, bounded at SPOOL_MAX_BYTES (32 MiB,
PROXY_SPOOL_MAX_MIB): past it, the generation is stopped and the client cut, CLIENT TOO SLOW.
- _engine_end decides a death or a cut as the pump reads it: out of reach, the order read
once, the request bound or a hop's box told ("o", put before the death or the cut), the
3 s of deferred reads started at the binding; _engine_end_late reads the order again at a
dead stream's clean end. The relay only writes what was decided: a client that leaves first
no longer leaves a death unbound, an order seen at the death binds nothing however late.
- The ends: [DONE], message_stop, response.completed, .incomplete and .failed (SSE_ENDS), an
Ollama stream's last line (_NDJSON_DONE), and vLLM's death on its Anthropic route, said as a
ValidationError of ChatCompletionStreamResponse, when the engine no longer answers.
- stop_generations skips what a stop marked already, ends a running vLLM relay's upstream at
once, and a generation that starts while a stop is under way is that stop's (_STOP_WINDOW,
8 s more when SGLang's abort_all did not go, the cockpit then sending its own); the stop
route's finishing counts the streams whose end was read (_FINISHING).
Tests in tests/test_proxy_pair.py (the frozen client helper rewritten: one freeze, the effect
waited for, a binding's deferred reads counted, the end delayed at will), each failing on
93746bf's proxy, fifteen mutants caught; CLIENT TOO SLOW in dashboard/tests/test_lifecycle.py;
the floor stop tests start each with no stop under way. docs/pair.md says the bindings as
they are.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>