Skip to content

Get up and running with Kimi, GLM, MiniMax, DeepSeek, gpt-oss, Qwen, Gemma and other models.

server: increase timeout in stall detection from 5s to 30s (#8831)

Yashwanth A291def6adbdb
diff --git a/server/download.go b/server/download.go
index 857b16926..8f49351e4 100644
--- a/server/download.go
+++ b/server/download.go
@@ -368,7 +368,7 @@ func (b *blobDownload) downloadChunk(ctx context.Context, requestURL *url.URL, w
lastUpdated := part.lastUpdated
part.lastUpdatedMu.Unlock()
- if !lastUpdated.IsZero() && time.Since(lastUpdated) > 5*time.Second {
+ if !lastUpdated.IsZero() && time.Since(lastUpdated) > 30*time.Second {
const msg = "%s part %d stalled; retrying. If this persists, press ctrl-c to exit, then 'ollama pull' to find a faster connection."
slog.Info(fmt.Sprintf(msg, b.Digest[7:19], part.N))
// reset last updated