"vscode:/vscode.git/clone" did not exist on "c5e43637945c335a46a6c4dda4d2d874c07465c0"
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.
Showing
Please register or sign in to comment