Fast GPU overwhelms slow client connections, floods gateway RAM.
internal/proxy/
Flush()
Apply TCP backpressure: bounded buffer in io.Copy, pause upstream on slow client. Add context.WithCancel on client disconnect.
io.Copy
context.WithCancel
internal/proxy/bodydispatch.go
internal/proxy/streaming_test.go
No dependencies set.
The note is not visible to the blocked user.
Problem
Fast GPU overwhelms slow client connections, floods gateway RAM.
Investigation
internal/proxy/usesFlush()for SSE streamingResolution
Apply TCP backpressure: bounded buffer in
io.Copy, pause upstream on slow client. Addcontext.WithCancelon client disconnect.Files
internal/proxy/bodydispatch.gointernal/proxy/streaming_test.go