ollama/server/internal/client/ollama
Blake Mizerany ce929984a3
server/internal/client/ollama: fix file descriptor management in Pull (#9931)
Close chunked writers as soon as downloads complete, rather than
deferring closure until Pull exits. This prevents exhausting file
descriptors when pulling many layers.

Instead of unbounded defers, use a WaitGroup and background goroutine
to close each chunked writer as soon as its downloads finish.

Also rename 'total' to 'received' for clarity.
2025-03-21 16:16:38 -07:00
..
registry.go server/internal/client/ollama: fix file descriptor management in Pull (#9931) 2025-03-21 16:16:38 -07:00
registry_test.go server/internal/client/ollama: persist through chunk download errors (#9923) 2025-03-21 13:03:43 -07:00
trace.go server/internal/registry: take over pulls from server package (#9485) 2025-03-05 14:48:18 -08:00