go-rocm/internal/llamacpp
Claude 5778f1f011
fix: guard response body lifecycle in SSE streaming client
Use sync.Once to ensure resp.Body is closed exactly once, preventing
TCP connection leaks when the iterator is never consumed and
double-close when iterated twice. Also adds Accept: text/event-stream
header to both SSE endpoints.

Co-Authored-By: Virgil <virgil@lethean.io>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-19 21:04:02 +00:00
..
client.go fix: guard response body lifecycle in SSE streaming client 2026-02-19 21:04:02 +00:00
client_test.go test: completion streaming tests for llamacpp client 2026-02-19 20:59:21 +00:00
health.go fix: health check includes response body in errors, adds 503 test 2026-02-19 20:54:52 +00:00
health_test.go fix: health check includes response body in errors, adds 503 test 2026-02-19 20:54:52 +00:00