[PR #13679] [MERGED] x/imagegen/transfer: fix timeout and progress reporting #61031

Closed
opened 2026-04-29 16:06:40 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/ollama/ollama/pull/13679
Author: @jmorganca
Created: 1/11/2026
Status: Merged
Merged: 1/11/2026
Merged by: @jmorganca

Base: mainHead: jmorganca/fix-imagegen-downloader


📝 Commits (1)

  • f271ba5 x/imagegen/transfer: fix timeout and progress reporting

📊 Changes

3 files changed (+90 additions, -6 deletions)

View changed files

📝 x/imagegen/transfer/download.go (+13 -4)
📝 x/imagegen/transfer/transfer.go (+0 -2)
📝 x/imagegen/transfer/transfer_test.go (+77 -0)

📄 Description

This fixes two issues introduced in https://github.com/ollama/ollama/pull/13659

  • Remove 5-minute HTTP client timeout that caused "context deadline exceeded" errors on large file downloads. This was unnecessary

  • Fix progress bar total going down on resume by calculating total from all blobs upfront and reporting already-downloaded bytes as completed immediately.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/ollama/ollama/pull/13679 **Author:** [@jmorganca](https://github.com/jmorganca) **Created:** 1/11/2026 **Status:** ✅ Merged **Merged:** 1/11/2026 **Merged by:** [@jmorganca](https://github.com/jmorganca) **Base:** `main` ← **Head:** `jmorganca/fix-imagegen-downloader` --- ### 📝 Commits (1) - [`f271ba5`](https://github.com/ollama/ollama/commit/f271ba5768ab5e24c61a9abf1fb1f43af6fab13c) x/imagegen/transfer: fix timeout and progress reporting ### 📊 Changes **3 files changed** (+90 additions, -6 deletions) <details> <summary>View changed files</summary> 📝 `x/imagegen/transfer/download.go` (+13 -4) 📝 `x/imagegen/transfer/transfer.go` (+0 -2) 📝 `x/imagegen/transfer/transfer_test.go` (+77 -0) </details> ### 📄 Description This fixes two issues introduced in https://github.com/ollama/ollama/pull/13659 - Remove 5-minute HTTP client timeout that caused "context deadline exceeded" errors on large file downloads. This was unnecessary - Fix progress bar total going down on resume by calculating total from all blobs upfront and reporting already-downloaded bytes as completed immediately. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-29 16:06:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/ollama#61031